| @@ 103-105 (lines=3) @@ | ||
| 100 | ||
| 101 | // Which nesting level is the one we are interested in ? |
|
| 102 | $nestedParenthesisCount = 1; |
|
| 103 | if (isset($tokens[$openBracket]['nested_parenthesis'])) { |
|
| 104 | $nestedParenthesisCount = count($tokens[$openBracket]['nested_parenthesis']) + 1; |
|
| 105 | } |
|
| 106 | ||
| 107 | foreach ($parameters as $parameter) { |
|
| 108 | if ($this->isCallTimePassByReferenceParam($phpcsFile, $parameter, $nestedParenthesisCount) === true) { |
|
| @@ 420-422 (lines=3) @@ | ||
| 417 | //echo '$opener = ', $opener . ' :: ' . $tokens[$opener]['type'] . ' :: ' . $tokens[$opener]['content'] . "\n"; |
|
| 418 | //echo '$closer = ', $closer . ' :: ' . $tokens[$closer]['type'] . ' :: ' . $tokens[$closer]['content'] . "\n"; |
|
| 419 | // Which nesting level is the one we are interested in ? |
|
| 420 | if (isset($tokens[$opener]['nested_parenthesis'])) { |
|
| 421 | $nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']); |
|
| 422 | } |
|
| 423 | ||
| 424 | //echo '$nestingLevel = ', $nestedParenthesisCount . "\n"; |
|
| 425 | $parameters = array(); |
|