| @@ 108-113 (lines=6) @@ | ||
| 105 | ||
| 106 | // Only interested in the last USE statement from here onwards. |
|
| 107 | $nextUse = $phpcsFile->findNext(T_USE, ($stackPtr + 1)); |
|
| 108 | while ($this->shouldIgnoreUse($phpcsFile, $nextUse)) { |
|
| 109 | $nextUse = $phpcsFile->findNext(T_USE, ($nextUse + 1)); |
|
| 110 | if ($nextUse === false) { |
|
| 111 | break; |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||
| 115 | if ($nextUse !== false) { |
|
| 116 | return; |
|
| @@ 138-143 (lines=6) @@ | ||
| 135 | ||
| 136 | // Only interested in the last USE statement from here onwards. |
|
| 137 | $nextUse = $phpcsFile->findNext(T_USE, ($stackPtr + 1)); |
|
| 138 | while ($this->_shouldIgnoreUse($phpcsFile, $nextUse) === true) { |
|
| 139 | $nextUse = $phpcsFile->findNext(T_USE, ($nextUse + 1)); |
|
| 140 | if ($nextUse === false) { |
|
| 141 | break; |
|
| 142 | } |
|
| 143 | } |
|
| 144 | ||
| 145 | if ($nextUse !== false) { |
|
| 146 | return; |
|