function FunctionCallSignatureSniff::isMultiLineCall
Same name in this branch
- 11.1.x vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionCallSignatureSniff.php \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionCallSignatureSniff::isMultiLineCall()
Determine if this is a multi-line function call.
Parameters
\PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.:
int $stackPtr The position of the current token: in the stack passed in $tokens.
int $openBracket The position of the opening bracket: in the stack passed in $tokens.
array $tokens The stack of tokens that make up: the file.
Return value
bool
1 call to FunctionCallSignatureSniff::isMultiLineCall()
- FunctionCallSignatureSniff::process in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ PEAR/ Sniffs/ Functions/ FunctionCallSignatureSniff.php - Processes this test, when one of its tokens is encountered.
1 method overrides FunctionCallSignatureSniff::isMultiLineCall()
- FunctionCallSignatureSniff::isMultiLineCall in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ PSR2/ Sniffs/ Methods/ FunctionCallSignatureSniff.php - Processes single-line calls.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Standards/ PEAR/ Sniffs/ Functions/ FunctionCallSignatureSniff.php, line 182
Class
Namespace
PHP_CodeSniffer\Standards\PEAR\Sniffs\FunctionsCode
public function isMultiLineCall(File $phpcsFile, $stackPtr, $openBracket, $tokens) {
$closeBracket = $tokens[$openBracket]['parenthesis_closer'];
if ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']) {
return true;
}
return false;
}