Passed
Push — master ( 129525...418a0a )
by bader
02:31
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@
 block discarded – undo
14 14
         return $this->rows;
15 15
     }
16 16
 
17
-    public static function all($columns = [])
17
+    public static function all($columns = [ ])
18 18
     {
19
-        if(!empty(static::$kabsaCollection)) {
19
+        if (!empty(static::$kabsaCollection)) {
20 20
             return static::$kabsaCollection;
21 21
         }
22 22
         
23 23
         self::unguard();
24 24
         $self = new self();
25 25
 
26
-        return static::$kabsaCollection = Collection::make($self->getRows() ?? [])->map(function ($row) { return new self($row); });
26
+        return static::$kabsaCollection = Collection::make($self->getRows() ?? [ ])->map(function($row) { return new self($row); });
27 27
     }
28 28
 
29 29
     public function __call($method, $parameters)
Please login to merge, or discard this patch.