|
@@ 1686-1689 (lines=4) @@
|
| 1683 |
|
|
| 1684 |
|
// Find the first arithmetic operator, but skip past +/- signs before numbers. |
| 1685 |
|
$nextNonEmpty = ($start - 1); |
| 1686 |
|
do { |
| 1687 |
|
$nextNonEmpty = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true); |
| 1688 |
|
$arithmeticOperator = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$arithmeticTokens, ($nextNonEmpty + 1), ($end + 1)); |
| 1689 |
|
} while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator); |
| 1690 |
|
|
| 1691 |
|
if ($arithmeticOperator === false) { |
| 1692 |
|
return false; |
|
@@ 1704-1707 (lines=4) @@
|
| 1701 |
|
) { |
| 1702 |
|
$subsetStart = ($arithmeticOperator + 1); |
| 1703 |
|
$nextNonEmpty = $arithmeticOperator; |
| 1704 |
|
do { |
| 1705 |
|
$nextNonEmpty = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true); |
| 1706 |
|
$arithmeticOperator = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$arithmeticTokens, ($nextNonEmpty + 1), ($end + 1)); |
| 1707 |
|
} while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator); |
| 1708 |
|
|
| 1709 |
|
if ($arithmeticOperator === false) { |
| 1710 |
|
// Last calculation operator already reached. |