Code Duplication    Length = 3-3 lines in 2 locations

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

Sniff.php 1 location

@@ 293-295 (lines=3) @@
290
291
        // Which nesting level is the one we are interested in ?
292
        $nestedParenthesisCount = 1;
293
        if (isset($tokens[$openParenthesis]['nested_parenthesis'])) {
294
            $nestedParenthesisCount = count($tokens[$openParenthesis]['nested_parenthesis']) + 1;
295
        }
296
297
        $parameters = array();
298
        $nextComma  = $openParenthesis;