@@ -125,7 +125,7 @@ discard block  | 
                                                    ||
| 125 | 125 |          if (!is_numeric($index)) { | 
                                                        
| 126 | 126 | $target = $index;  | 
                                                        
| 127 | 127 | $index = null;  | 
                                                        
| 128 | -            foreach ((array)$nodes as $nodeIndex => $node) { | 
                                                        |
| 128 | +            foreach ((array) $nodes as $nodeIndex => $node) { | 
                                                        |
| 129 | 129 |                  if ($node['type'] === $target) { | 
                                                        
| 130 | 130 | $index = $nodeIndex;  | 
                                                        
| 131 | 131 | break;  | 
                                                        
@@ -206,7 +206,7 @@ discard block  | 
                                                    ||
| 206 | 206 | }  | 
                                                        
| 207 | 207 | $index = null;  | 
                                                        
| 208 | 208 |              if (isset($this->data[$entityType][$path])) { | 
                                                        
| 209 | -                foreach ((array)$this->data[$entityType][$path] as $nodeIndex => $node) { | 
                                                        |
| 209 | +                foreach ((array) $this->data[$entityType][$path] as $nodeIndex => $node) { | 
                                                        |
| 210 | 210 |                      if ($node['type'] === $target) { | 
                                                        
| 211 | 211 | $index = $nodeIndex;  | 
                                                        
| 212 | 212 | break;  | 
                                                        
@@ -292,7 +292,7 @@ discard block  | 
                                                    ||
| 292 | 292 | }  | 
                                                        
| 293 | 293 | |
| 294 | 294 |          if (is_numeric($index)) { | 
                                                        
| 295 | - $index = (int)$index;  | 
                                                        |
| 295 | + $index = (int) $index;  | 
                                                        |
| 296 | 296 |              if ($removeAll) { | 
                                                        
| 297 | 297 | // Remove all (higher) values to prevent a new value after re-indexing  | 
                                                        
| 298 | 298 |                  if ($index === 0) { | 
                                                        
@@ -307,7 +307,7 @@ discard block  | 
                                                    ||
| 307 | 307 | // Filter out all nodes of the specified type  | 
                                                        
| 308 | 308 | $this->data[$entityType][$path] = array_filter(  | 
                                                        
| 309 | 309 | $this->data[$entityType][$path],  | 
                                                        
| 310 | -                static function ($node) use ($index) { | 
                                                        |
| 310 | +                static function($node) use ($index) { | 
                                                        |
| 311 | 311 | return empty($node['type']) || $node['type'] !== $index;  | 
                                                        
| 312 | 312 | }  | 
                                                        
| 313 | 313 | );  | 
                                                        
@@ -365,7 +365,7 @@ discard block  | 
                                                    ||
| 365 | 365 | || substr_compare($path, '.', -1) === 0 // ends with .  | 
                                                        
| 366 | 366 | || in_array(strpos($path, '.'), [false, 0], true) // starts with or doesnt have any .  | 
                                                        
| 367 | 367 |          ) { | 
                                                        
| 368 | -            throw new InvalidDataBagPathException('Invalid path provided: ' . $path); | 
                                                        |
| 368 | +            throw new InvalidDataBagPathException('Invalid path provided: '.$path); | 
                                                        |
| 369 | 369 | }  | 
                                                        
| 370 | 370 | }  | 
                                                        
| 371 | 371 | |