Code Duplication    Length = 3-3 lines in 2 locations

Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location

@@ 99-101 (lines=3) @@
96
97
        // Which nesting level is the one we are interested in ?
98
        $nestedParenthesisCount = 1;
99
        if (isset($tokens[$openBracket]['nested_parenthesis'])) {
100
            $nestedParenthesisCount = count($tokens[$openBracket]['nested_parenthesis']) + 1;
101
        }
102
103
        foreach ($parameters as $parameter) {
104
            if ($this->isCallTimePassByReferenceParam($phpcsFile, $parameter, $nestedParenthesisCount) === true) {

Sniff.php 1 location

@@ 521-523 (lines=3) @@
518
        }
519
520
        // Which nesting level is the one we are interested in ?
521
        if (isset($tokens[$opener]['nested_parenthesis'])) {
522
            $nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']);
523
        }
524
525
        $parameters = array();
526
        $nextComma  = $opener;