Code Duplication    Length = 5-5 lines in 2 locations

PHPCompatibility/Sniffs/PHP/RemovedGlobalVariablesSniff.php 2 locations

@@ 245-249 (lines=5) @@
242
        }
243
244
        // Is this a variable assignment ?
245
        if ($nextNonEmpty !== false
246
            && in_array($tokens[$nextNonEmpty]['code'], \PHP_CodeSniffer_Tokens::$assignmentTokens, true)
247
        ) {
248
            return false;
249
        }
250
251
        // Is this a function param shadowing the PHP native one ?
252
        if ($function !== false) {
@@ 294-298 (lines=5) @@
291
                true
292
            );
293
294
            if ($nextNonEmpty !== false
295
                && in_array($tokens[$nextNonEmpty]['code'], \PHP_CodeSniffer_Tokens::$assignmentTokens, true)
296
            ) {
297
                return false;
298
            }
299
        }
300
301
        return true;