@@ 1765-1768 (lines=4) @@ | ||
1762 | ||
1763 | // Find the first arithmetic operator, but skip past +/- signs before numbers. |
|
1764 | $nextNonEmpty = ($start - 1); |
|
1765 | do { |
|
1766 | $nextNonEmpty = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true); |
|
1767 | $arithmeticOperator = $phpcsFile->findNext($arithmeticTokens, ($nextNonEmpty + 1), ($end + 1)); |
|
1768 | } while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator); |
|
1769 | ||
1770 | if ($arithmeticOperator === false) { |
|
1771 | return false; |
|
@@ 1793-1796 (lines=4) @@ | ||
1790 | ||
1791 | $subsetStart = ($arithmeticOperator + 1); |
|
1792 | $nextNonEmpty = $arithmeticOperator; |
|
1793 | do { |
|
1794 | $nextNonEmpty = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true); |
|
1795 | $arithmeticOperator = $phpcsFile->findNext($arithmeticTokens, ($nextNonEmpty + 1), ($end + 1)); |
|
1796 | } while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator); |
|
1797 | ||
1798 | if ($arithmeticOperator === false) { |
|
1799 | // Last calculation operator already reached. |