Passed
Push — master ( 0bdd13...9be812 )
by Andrew
02:06
created
lib/XMLReaderElement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     protected function convertAttributes($attributes)
69 69
     {
70
-        foreach($attributes as $k=>$attribute)
70
+        foreach ($attributes as $k=>$attribute)
71 71
         {
72 72
             $attributes[$k] = $this->convertValue($attribute);
73 73
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
         if (is_array($this->value)) {
139 139
             $results = [];
140
-            foreach($this->value as $value) {
140
+            foreach ($this->value as $value) {
141 141
                 if ($value instanceof XMLReaderElement &&
142 142
                                 $this->namespace === $value->namespace) {
143 143
                     $results[] = $value;
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         if ($this->name == $search)
162 162
             $results[] = $this;
163 163
 
164
-        foreach($this->children() as $child) {
164
+        foreach ($this->children() as $child) {
165 165
             $results = array_merge($results, $child->find($search));
166 166
         }
167 167
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         if (is_array($this->value))
180 180
         {
181
-            foreach($this->value as $value)
181
+            foreach ($this->value as $value)
182 182
             {
183 183
                 if ($value instanceof XMLReaderElement && $value->name == $name)
184 184
                     return $value;
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         if (!empty($this->children())) {
204 204
             $names = [];
205
-            foreach($this->children() as $child) {
205
+            foreach ($this->children() as $child) {
206 206
                 $names[] = $child->name;
207 207
             }
208 208
 
Please login to merge, or discard this patch.