Completed
Push — master ( a2ad67...62d5ae )
by Nikita
03:57
created
src/ComputedProperties.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
 {
10 10
     public static function bootComputedProperties()
11 11
     {
12
-        Builder::macro('withComputed', function ($properties) {
13
-            collect($properties)->each(function ($property) {
12
+        Builder::macro('withComputed', function($properties) {
13
+            collect($properties)->each(function($property) {
14 14
                 if (!$this->model->hasComputedProperty($property)) {
15 15
                     throw new \InvalidArgumentException("Computed property [$property] does not exist");
16 16
                 }
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
                 $query = $this->model->callComputedProperty($property, true);
19 19
 
20 20
                 if (is_null($this->query->columns)) {
21
-                    $this->query->select([$this->query->from.'.*']);
21
+                    $this->query->select([$this->query->from . '.*']);
22 22
                 }
23 23
 
24 24
                 $this->selectSub($query, $property);
Please login to merge, or discard this patch.