Code Duplication    Length = 4-4 lines in 2 locations

PHPCompatibility/Sniff.php 2 locations

@@ 1708-1711 (lines=4) @@
1705
1706
        // Find the first arithmetic operator, but skip past +/- signs before numbers.
1707
        $nextNonEmpty = ($start - 1);
1708
        do {
1709
            $nextNonEmpty       = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true);
1710
            $arithmeticOperator = $phpcsFile->findNext($arithmeticTokens, ($nextNonEmpty + 1), ($end + 1));
1711
        } while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator);
1712
1713
        if ($arithmeticOperator === false) {
1714
            return false;
@@ 1726-1729 (lines=4) @@
1723
        ) {
1724
            $subsetStart  = ($arithmeticOperator + 1);
1725
            $nextNonEmpty = $arithmeticOperator;
1726
            do {
1727
                $nextNonEmpty       = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true);
1728
                $arithmeticOperator = $phpcsFile->findNext($arithmeticTokens, ($nextNonEmpty + 1), ($end + 1));
1729
            } while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator);
1730
1731
            if ($arithmeticOperator === false) {
1732
                // Last calculation operator already reached.