PHPCompatibility/Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location
|
@@ 139-141 (lines=3) @@
|
| 136 |
|
|
| 137 |
|
// Which nesting level is the one we are interested in ? |
| 138 |
|
$nestedParenthesisCount = 1; |
| 139 |
|
if (isset($tokens[$openBracket]['nested_parenthesis'])) { |
| 140 |
|
$nestedParenthesisCount = count($tokens[$openBracket]['nested_parenthesis']) + 1; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
foreach ($parameters as $parameter) { |
| 144 |
|
if ($this->isCallTimePassByReferenceParam($phpcsFile, $parameter, $nestedParenthesisCount) === true) { |
PHPCompatibility/Sniff.php 1 location
|
@@ 445-447 (lines=3) @@
|
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
// Which nesting level is the one we are interested in ? |
| 445 |
|
if (isset($tokens[$opener]['nested_parenthesis'])) { |
| 446 |
|
$nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']); |
| 447 |
|
} |
| 448 |
|
|
| 449 |
|
$parameters = array(); |
| 450 |
|
$nextComma = $opener; |