@@ -19,21 +19,21 @@ |
||
19 | 19 | protected $config; |
20 | 20 | |
21 | 21 | |
22 | - public function __construct($config){ //print_r((array)simplexml_load_string($config)); |
|
22 | + public function __construct($config) { //print_r((array)simplexml_load_string($config)); |
|
23 | 23 | $this->config = ($config); |
24 | 24 | } |
25 | 25 | |
26 | - public function read(){ |
|
26 | + public function read() { |
|
27 | 27 | $iterator = new \SimpleXMLIterator($this->config); |
28 | 28 | $iterator->rewind(); |
29 | - while($iterator->valid()){ |
|
29 | + while ($iterator->valid()) { |
|
30 | 30 | |
31 | 31 | $arrayNode = XMLArrayTranslator::translate($iterator->current()->asXML()); |
32 | 32 | $this->doFireEvent('read_node', array('NODE'=>$arrayNode)); |
33 | 33 | $iterator->next(); |
34 | 34 | } |
35 | 35 | |
36 | - foreach($iterator as $xmlNode){ |
|
36 | + foreach ($iterator as $xmlNode) { |
|
37 | 37 | |
38 | 38 | } |
39 | 39 | $this->config = array(); |