@@ -1,6 +1,6 @@ discard block  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | -declare(strict_types=1);  | 
                                                        |
| 3 | +declare(strict_types = 1);  | 
                                                        |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model;  | 
                                                        
| 6 | 6 | |
@@ -15,25 +15,25 @@ discard block  | 
                                                    ||
| 15 | 15 | */  | 
                                                        
| 16 | 16 | private function sort(string $modelClass, array $models, array $orderBy = null): array  | 
                                                        
| 17 | 17 |      { | 
                                                        
| 18 | -        if ([] === $models) { | 
                                                        |
| 19 | - return [];  | 
                                                        |
| 18 | +        if ([ ] === $models) { | 
                                                        |
| 19 | + return [ ];  | 
                                                        |
| 20 | 20 | }  | 
                                                        
| 21 | 21 | |
| 22 | 22 |          if (null === $orderBy) { | 
                                                        
| 23 | 23 | return $models;  | 
                                                        
| 24 | 24 | }  | 
                                                        
| 25 | 25 | |
| 26 | - $reflections = [];  | 
                                                        |
| 26 | + $reflections = [ ];  | 
                                                        |
| 27 | 27 |          foreach ($orderBy as $property => $sortingDirection) { | 
                                                        
| 28 | 28 | $reflection = new \ReflectionProperty($modelClass, $property);  | 
                                                        
| 29 | 29 | $reflection->setAccessible(true);  | 
                                                        
| 30 | 30 | |
| 31 | - $reflections[$property] = $reflection;  | 
                                                        |
| 31 | + $reflections[ $property ] = $reflection;  | 
                                                        |
| 32 | 32 | }  | 
                                                        
| 33 | 33 | |
| 34 | -        usort($models, function (ModelInterface $a, ModelInterface $b) use ($reflections, $orderBy) { | 
                                                        |
| 34 | +        usort($models, function(ModelInterface $a, ModelInterface $b) use ($reflections, $orderBy) { | 
                                                        |
| 35 | 35 |              foreach ($orderBy as $property => $sortingDirection) { | 
                                                        
| 36 | - $reflection = $reflections[$property];  | 
                                                        |
| 36 | + $reflection = $reflections[ $property ];  | 
                                                        |
| 37 | 37 | $valueA = $reflection->getValue($a);  | 
                                                        
| 38 | 38 | $valueB = $reflection->getValue($b);  | 
                                                        
| 39 | 39 | |