PHPCompatibility/Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location
|
@@ 125-129 (lines=5) @@
|
122 |
|
true |
123 |
|
); |
124 |
|
|
125 |
|
if ($openBracket === false || $tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS |
126 |
|
|| isset($tokens[$openBracket]['parenthesis_closer']) === false |
127 |
|
) { |
128 |
|
return; |
129 |
|
} |
130 |
|
|
131 |
|
// Get the function call parameters. |
132 |
|
$parameters = $this->getFunctionCallParameters($phpcsFile, $stackPtr); |
PHPCompatibility/Sniffs/PHP/NewTrailingCommaSniff.php 1 location
|
@@ 64-68 (lines=5) @@
|
61 |
|
$tokens = $phpcsFile->getTokens(); |
62 |
|
|
63 |
|
$nextNonEmpty = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true); |
64 |
|
if ($tokens[$nextNonEmpty]['code'] !== T_OPEN_PARENTHESIS |
65 |
|
|| isset($tokens[$nextNonEmpty]['parenthesis_closer']) === false |
66 |
|
) { |
67 |
|
return; |
68 |
|
} |
69 |
|
|
70 |
|
if ($tokens[$stackPtr]['code'] === T_STRING) { |
71 |
|
$ignore = array( |