Completed
Push — master ( 63748e...ee4b86 )
by Dmitry
13s
created
src/Repository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         foreach ($data as $key => $value) {
74 74
             if ($value instanceof Entity) {
75
-                $value  = $value->getRepository()->getSpace()->getIndex(0)->getValue($value->toArray()) ?: null;
75
+                $value = $value->getRepository()->getSpace()->getIndex(0)->getValue($value->toArray()) ?: null;
76 76
             }
77 77
             $instance->$key = $value;
78 78
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $index = $this->getSpace()->castIndex($params);
91 91
 
92 92
         if ($index === null) {
93
-            throw new Exception("No index for params " . json_encode($params));
93
+            throw new Exception("No index for params ".json_encode($params));
94 94
         }
95 95
 
96 96
         $criteria = Criteria::index($index->id)
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     {
176 176
         $instance = $this->findOne($params);
177 177
         if (!$instance) {
178
-            throw new Exception("No " . $this->getSpace()->name . ' found using ' . json_encode($params));
178
+            throw new Exception("No ".$this->getSpace()->name.' found using '.json_encode($params));
179 179
         }
180 180
         return $instance;
181 181
     }
Please login to merge, or discard this patch.