Code Duplication    Length = 6-8 lines in 3 locations

PHPCompatibility/Sniffs/FunctionUse/ArgumentFunctionsReportCurrentValueSniff.php 3 locations

@@ 371-376 (lines=6) @@
368
                }
369
370
                $beforeVar = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($j - 1), null, true);
371
                if ($beforeVar !== false && isset($this->plusPlusMinusMinus[$tokens[$beforeVar]['code']])) {
372
                    // Variable is being (pre-)incremented/decremented.
373
                    $scanResult    = 'error';
374
                    $variableToken = $j;
375
                    break;
376
                }
377
378
                $afterVar = $phpcsFile->findNext(Tokens::$emptyTokens, ($j + 1), null, true);
379
                if ($afterVar === false) {
@@ 384-389 (lines=6) @@
381
                    continue;
382
                }
383
384
                if (isset($this->plusPlusMinusMinus[$tokens[$afterVar]['code']])) {
385
                    // Variable is being (post-)incremented/decremented.
386
                    $scanResult    = 'error';
387
                    $variableToken = $j;
388
                    break;
389
                }
390
391
                if ($tokens[$afterVar]['code'] === T_OPEN_SQUARE_BRACKET
392
                    && isset($tokens[$afterVar]['bracket_closer'])
@@ 404-411 (lines=8) @@
401
                    }
402
                }
403
404
                if ($afterVar !== false
405
                    && isset(Tokens::$assignmentTokens[$tokens[$afterVar]['code']])
406
                ) {
407
                    // Variable is being assigned something.
408
                    $scanResult    = 'error';
409
                    $variableToken = $j;
410
                    break;
411
                }
412
            }
413
414
            unset($argNumber, $paramNamesSubset);