Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 5 | Features | 0 |
1 | <?php |
||
28 | public function read() |
||
29 | { |
||
30 | $iterator = new \SimpleXMLIterator($this->config); |
||
31 | $iterator->rewind(); |
||
32 | while ($iterator->valid()) { |
||
33 | $arrayNode = XMLArrayTranslator::translate($iterator->current()->asXML()); |
||
34 | $this->doFireEvent('read_node', ['NODE' => $arrayNode]); |
||
35 | $iterator->next(); |
||
36 | } |
||
37 | |||
38 | foreach ($iterator as $xmlNode) { |
||
|
|||
39 | } |
||
40 | $this->config = []; |
||
41 | } |
||
42 | } |
||
43 |
This check looks for
foreach
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.