@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function getResults() |
| 21 | 21 | { |
| 22 | - return ! empty($this->child->{$this->foreignKey}) |
|
| 22 | + return !empty($this->child->{$this->foreignKey}) |
|
| 23 | 23 | ? $this->get() |
| 24 | 24 | : $this->related->newCollection(); |
| 25 | 25 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | protected function relationExistenceQueryOwnerKey(Builder $query, $ownerKey) |
| 160 | 160 | { |
| 161 | - if (! $this->key) { |
|
| 161 | + if (!$this->key) { |
|
| 162 | 162 | return $this->getJsonGrammar($query)->compileJsonArray($query->qualifyColumn($ownerKey)); |
| 163 | 163 | } |
| 164 | 164 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function getResults() |
| 21 | 21 | { |
| 22 | - return ! is_null($this->getParentKey()) |
|
| 22 | + return !is_null($this->getParentKey()) |
|
| 23 | 23 | ? $this->get() |
| 24 | 24 | : $this->related->newCollection(); |
| 25 | 25 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | $keys = $this->getKeys($models, $this->localKey); |
| 54 | 54 | |
| 55 | - $this->query->where(function (Builder $query) use ($keys) { |
|
| 55 | + $this->query->where(function(Builder $query) use ($keys) { |
|
| 56 | 56 | foreach ($keys as $key) { |
| 57 | 57 | if ($this->key) { |
| 58 | 58 | $key = [[$this->key => $key]]; |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | { |
| 177 | 177 | $parentKey = $this->getQualifiedParentKeyName(); |
| 178 | 178 | |
| 179 | - if (! $this->key) { |
|
| 179 | + if (!$this->key) { |
|
| 180 | 180 | return $this->getJsonGrammar($query)->compileJsonArray($query->qualifyColumn($parentKey)); |
| 181 | 181 | } |
| 182 | 182 | |