Passed
Branch master (39a2d7)
by Jonas
01:38
created
src/Relations/BelongsToJson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Relations/HasManyJson.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.