Code Duplication    Length = 3-3 lines in 2 locations

Sniff.php 1 location

@@ 506-508 (lines=3) @@
503
        }
504
505
        // Which nesting level is the one we are interested in ?
506
        if (isset($tokens[$opener]['nested_parenthesis'])) {
507
            $nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']);
508
        }
509
510
        $parameters = array();
511
        $nextComma  = $opener;

Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location

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