Passed
Push — master ( 36b5c4...8bb9fe )
by bader
02:50
created
src/Traits/KabsaRelationships.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 
9 9
 trait KabsaRelationships
10 10
 {
11
-    public function belongsToKabsaRow($related,  $foreignKey = null, $ownerKey = null)
11
+    public function belongsToKabsaRow($related, $foreignKey = null, $ownerKey = null)
12 12
     {
13 13
         return new BelongsToCached($related, $this, $foreignKey, $ownerKey);
14 14
     }
15 15
 
16
-    public function hasManyKabsaRows($related,  $foreignKey = null, $ownerKey = null)
16
+    public function hasManyKabsaRows($related, $foreignKey = null, $ownerKey = null)
17 17
     {
18 18
         return new HasManyCached($related, $this, $foreignKey, $ownerKey);
19 19
     }
Please login to merge, or discard this patch.
src/Traits/Kabsa.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,25 +22,25 @@
 block discarded – undo
22 22
         return $this->rows;
23 23
     }
24 24
 
25
-    public static function all($columns = [])
25
+    public static function all($columns = [ ])
26 26
     {
27
-        if(!empty(static::$kabsaCollection)) {
27
+        if (!empty(static::$kabsaCollection)) {
28 28
             return static::$kabsaCollection;
29 29
         }
30 30
 
31 31
         return static::$kabsaCollection = Collection::make(
32
-            (new static)->getRows() ?? [])
33
-            ->map(function ($row) {
32
+            (new static)->getRows() ?? [ ])
33
+            ->map(function($row) {
34 34
                 return new static($row);
35 35
             });
36 36
     }
37 37
 
38 38
     public static function addRow($row)
39 39
     {
40
-        if(static::$kabsaCollection instanceof Collection) {
40
+        if (static::$kabsaCollection instanceof Collection) {
41 41
             static::$kabsaCollection->push(new static($row));
42 42
         } else {
43
-            static::$kabsaCollection = Collection::make([new static($row)]);
43
+            static::$kabsaCollection = Collection::make([ new static($row) ]);
44 44
         }
45 45
 
46 46
         return true;
Please login to merge, or discard this patch.