Code Duplication    Length = 3-3 lines in 3 locations

PHPCompatibility/Sniff.php 1 location

@@ 445-447 (lines=3) @@
442
        }
443
444
        // Which nesting level is the one we are interested in ?
445
        if (isset($tokens[$opener]['nested_parenthesis'])) {
446
            $nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']);
447
        }
448
449
        $parameters = array();
450
        $nextComma  = $opener;

PHPCompatibility/Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location

@@ 139-141 (lines=3) @@
136
137
        // Which nesting level is the one we are interested in ?
138
        $nestedParenthesisCount = 1;
139
        if (isset($tokens[$openBracket]['nested_parenthesis'])) {
140
            $nestedParenthesisCount = count($tokens[$openBracket]['nested_parenthesis']) + 1;
141
        }
142
143
        foreach ($parameters as $parameter) {
144
            if ($this->isCallTimePassByReferenceParam($phpcsFile, $parameter, $nestedParenthesisCount) === true) {

PHPCompatibility/Sniffs/PHP/NewConstantScalarExpressionsSniff.php 1 location

@@ 187-189 (lines=3) @@
184
185
                // Which nesting level is the one we are interested in ?
186
                $nestedParenthesisCount = 1;
187
                if (isset($tokens[$opener]['nested_parenthesis'])) {
188
                    $nestedParenthesisCount += count($tokens[$opener]['nested_parenthesis']);
189
                }
190
191
                foreach ($params as $param) {
192
                    if (isset($param['default']) === false) {