function RequireSingleLineCallSniff::shouldReportError
1 call to RequireSingleLineCallSniff::shouldReportError()
- RequireSingleLineCallSniff::process in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Functions/ RequireSingleLineCallSniff.php - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Functions/ RequireSingleLineCallSniff.php, line 191
Class
Namespace
SlevomatCodingStandard\Sniffs\FunctionsCode
private function shouldReportError(int $lineLength) : bool {
if ($this->maxLineLength === 0) {
return true;
}
return $lineLength <= $this->maxLineLength;
}