Code Duplication    Length = 3-3 lines in 2 locations

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;

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