@@ -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 | } |
@@ -12,12 +12,12 @@ |
||
| 12 | 12 | return $this->rows; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | - public static function all($columns = []) |
|
| 15 | + public static function all($columns = [ ]) |
|
| 16 | 16 | { |
| 17 | 17 | self::unguard(); |
| 18 | 18 | $self = new self(); |
| 19 | 19 | |
| 20 | - return Collection::make($self->getRows() ?? [])->map(function ($row) { return new self($row); }); |
|
| 20 | + return Collection::make($self->getRows() ?? [ ])->map(function($row) { return new self($row); }); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public function __call($method, $parameters) |