Passed
Push — master ( 00ecc8...c93f26 )
by Andrew
02:22 queued 12s
created
lib/XMLReaderElement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.