Code Duplication    Length = 3-3 lines in 3 locations

PHPCompatibility/Sniff.php 1 location

@@ 484-486 (lines=3) @@
481
        }
482
483
        // Which nesting level is the one we are interested in ?
484
        if (isset($tokens[$opener]['nested_parenthesis'])) {
485
            $nestedParenthesisCount += \count($tokens[$opener]['nested_parenthesis']);
486
        }
487
488
        $parameters = array();
489
        $nextComma  = $opener;

PHPCompatibility/Sniffs/InitialValue/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) {

PHPCompatibility/Sniffs/Syntax/ForbiddenCallTimePassByReferenceSniff.php 1 location

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