@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | protected function convertAttributes($attributes) { |
72 | - foreach($attributes as $k=>$attribute) { |
|
72 | + foreach ($attributes as $k=>$attribute) { |
|
73 | 73 | $attributes[$k] = $this->convertValue($attribute); |
74 | 74 | } |
75 | 75 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | if (is_array($this->value)) { |
129 | 129 | $results = []; |
130 | - foreach($this->value as $value) { |
|
130 | + foreach ($this->value as $value) { |
|
131 | 131 | if ($value instanceof XMLReaderElement) { |
132 | 132 | $results[] = $value; |
133 | 133 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $results[] = $this; |
155 | 155 | } |
156 | 156 | |
157 | - foreach($this->children() as $child) { |
|
157 | + foreach ($this->children() as $child) { |
|
158 | 158 | $results = array_merge($results, $child->find($search)); |
159 | 159 | } |
160 | 160 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | public function __get($name) { |
171 | 171 | /* Access the Elements Attributes */ |
172 | 172 | if (is_array($this->value)) { |
173 | - foreach($this->value as $value) { |
|
173 | + foreach ($this->value as $value) { |
|
174 | 174 | if ($value instanceof XMLReaderElement && $value->name == $name) { |
175 | 175 | return $value; |
176 | 176 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | |
190 | 190 | if ($this->hasChildren()) { |
191 | 191 | $names = []; |
192 | - foreach($this->children() as $child) { |
|
192 | + foreach ($this->children() as $child) { |
|
193 | 193 | $names[] = $child->name; |
194 | 194 | } |
195 | 195 |