|
@@ 1846-1849 (lines=4) @@
|
| 1843 |
|
|
| 1844 |
|
// Find the first arithmetic operator, but skip past +/- signs before numbers. |
| 1845 |
|
$nextNonEmpty = ($start - 1); |
| 1846 |
|
do { |
| 1847 |
|
$nextNonEmpty = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true); |
| 1848 |
|
$arithmeticOperator = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$arithmeticTokens, ($nextNonEmpty + 1), ($end + 1)); |
| 1849 |
|
} while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator); |
| 1850 |
|
|
| 1851 |
|
if ($arithmeticOperator === false ) { |
| 1852 |
|
return false; |
|
@@ 1864-1867 (lines=4) @@
|
| 1861 |
|
) { |
| 1862 |
|
$subsetStart = ($arithmeticOperator + 1); |
| 1863 |
|
$nextNonEmpty = $arithmeticOperator; |
| 1864 |
|
do { |
| 1865 |
|
$nextNonEmpty = $phpcsFile->findNext($skipTokens, ($nextNonEmpty + 1), ($end + 1), true); |
| 1866 |
|
$arithmeticOperator = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$arithmeticTokens, ($nextNonEmpty + 1), ($end + 1)); |
| 1867 |
|
} while ($nextNonEmpty !== false && $arithmeticOperator !== false && $nextNonEmpty === $arithmeticOperator); |
| 1868 |
|
|
| 1869 |
|
if ($arithmeticOperator === false ) { |
| 1870 |
|
// Last calculation operator already reached. |