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