PHPCompatibility/Sniff.php 1 location
|
@@ 513-515 (lines=3) @@
|
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
// Which nesting level is the one we are interested in ? |
| 513 |
|
if (isset($tokens[$opener]['nested_parenthesis'])) { |
| 514 |
|
$nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']); |
| 515 |
|
} |
| 516 |
|
|
| 517 |
|
$parameters = array(); |
| 518 |
|
$nextComma = $opener; |
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) { |