Code Duplication    Length = 3-3 lines in 2 locations

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) {

Sniff.php 1 location

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