function Help::getMaxWidth
Get the maximum width which can be used to display the help info.
Independently of user preference/auto-determined width of the current screen, a minimum width is needed to display information, so don't allow this to get too low.
Return value
int
2 calls to Help::getMaxWidth()
- Help::getDescriptionColumnWidth in vendor/
squizlabs/ php_codesniffer/ src/ Util/ Help.php - Get the maximum width for the text in the option description column.
- Help::printCategoryOptions in vendor/
squizlabs/ php_codesniffer/ src/ Util/ Help.php - Print the options for a category.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Util/ Help.php, line 233
Class
Namespace
PHP_CodeSniffer\UtilCode
private function getMaxWidth() {
return max(self::MIN_WIDTH, $this->config->reportWidth);
}