@@ -7,11 +7,11 @@ |
||
| 7 | 7 | |
| 8 | 8 | trait Kabsa |
| 9 | 9 | { |
| 10 | - public static function all($columns = []) |
|
| 10 | + public static function all($columns = [ ]) |
|
| 11 | 11 | { |
| 12 | 12 | self::unguard(); |
| 13 | 13 | $self = new self(); |
| 14 | - return Collection::make($self->rows ?? [])->map(function ($row) { return new self($row); }); |
|
| 14 | + return Collection::make($self->rows ?? [ ])->map(function($row) { return new self($row); }); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function __call($method, $parameters) |
@@ -8,12 +8,12 @@ |
||
| 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 | } |