Code Duplication    Length = 3-3 lines in 2 locations

PHPCompatibility/Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location

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

PHPCompatibility/Sniff.php 1 location

@@ 513-515 (lines=3) @@
510
        }
511
512
        // Which nesting level is the one we are interested in ?
513
        if (isset($tokens[$opener]['nested_parenthesis'])) {
514
            $nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']);
515
        }
516
517
        $parameters = array();
518
        $nextComma  = $opener;