Completed
Push — master ( 113f0b...9c2399 )
by Dominik
01:55
created
src/Collection/LazyModelCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model\Collection;
6 6
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     private function modelsWithIdKey(array $models): array
54 54
     {
55
-        $modelsWithIdKey = [];
55
+        $modelsWithIdKey = [ ];
56 56
         foreach ($models as $model) {
57 57
             if (!$model instanceof ModelInterface) {
58 58
                 throw new \InvalidArgumentException(
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 );
61 61
             }
62 62
 
63
-            $modelsWithIdKey[$model->getId()] = $model;
63
+            $modelsWithIdKey[ $model->getId() ] = $model;
64 64
         }
65 65
 
66 66
         return $modelsWithIdKey;
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
     {
151 151
         $this->loadModels();
152 152
 
153
-        $serializedModels = [];
153
+        $serializedModels = [ ];
154 154
         foreach ($this->models as $model) {
155
-            $serializedModels[] = $model->jsonSerialize();
155
+            $serializedModels[ ] = $model->jsonSerialize();
156 156
         }
157 157
 
158 158
         return $serializedModels;
Please login to merge, or discard this patch.