Conditions | 5 |
Paths | 16 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
25 | public function flush() |
||
26 | { |
||
27 | $client = $this->client->useTube($this->channel); |
||
28 | try { |
||
29 | while ($client->delete($client->peekDelayed())) {} |
||
|
|||
30 | } catch (ServerException $e) { |
||
31 | } |
||
32 | try { |
||
33 | while ($client->delete($client->peekReady())) {} |
||
34 | } catch (ServerException $e) { |
||
35 | } |
||
36 | } |
||
37 | |||
67 |
This check looks for
while
loops that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.Consider removing the loop.