Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location
|
@@ 81-85 (lines=5) @@
|
| 78 |
|
true |
| 79 |
|
); |
| 80 |
|
|
| 81 |
|
if ($tokens[$functionKeyword]['code'] === T_FUNCTION |
| 82 |
|
|| $tokens[$functionKeyword]['code'] === T_CLASS |
| 83 |
|
) { |
| 84 |
|
return; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
// If the next non-whitespace token after the function or method call |
| 88 |
|
// is not an opening parenthesis then it cant really be a *call*. |
Sniffs/PHP/ForbiddenParenthesisAroundFunctionParametersSniff.php 1 location
|
@@ 75-79 (lines=5) @@
|
| 72 |
|
true |
| 73 |
|
); |
| 74 |
|
|
| 75 |
|
if ($tokens[$functionKeyword]['code'] === T_FUNCTION |
| 76 |
|
|| $tokens[$functionKeyword]['code'] === T_CLASS |
| 77 |
|
) { |
| 78 |
|
return; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
// If the next non-whitespace token after the function or method call |
| 82 |
|
// is not an opening parenthesis then it cant really be a *call*. |