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;
@@ 1736-1739 (lines=4) @@
1733
1734
            $subsetStart  = ($arithmeticOperator + 1);
1735
            $nextNonEmpty = $arithmeticOperator;
1736
            do {
1737
                $nextNonEmpty       = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true);
1738
                $arithmeticOperator = $phpcsFile->findNext($arithmeticTokens, ($nextNonEmpty + 1), ($end + 1));
1739
            } while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator);
1740
1741
            if ($arithmeticOperator === false) {
1742
                // Last calculation operator already reached.