Completed
Push — master ( 15b6b1...b15a35 )
by Jonas
04:14
created
src/HasManyDeep.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
         $this->query->addSelect($columns);
211 211
 
212
-        return tap($this->query->paginate($perPage, $columns, $pageName, $page), function (Paginator $paginator) {
212
+        return tap($this->query->paginate($perPage, $columns, $pageName, $page), function(Paginator $paginator) {
213 213
             $this->hydrateIntermediateRelations($paginator->items());
214 214
         });
215 215
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
         $this->query->addSelect($columns);
233 233
 
234
-        return tap($this->query->simplePaginate($perPage, $columns, $pageName, $page), function (Paginator $paginator) {
234
+        return tap($this->query->simplePaginate($perPage, $columns, $pageName, $page), function(Paginator $paginator) {
235 235
             $this->hydrateIntermediateRelations($paginator->items());
236 236
         });
237 237
     }
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      */
257 257
     public function chunk($count, callable $callback)
258 258
     {
259
-        return $this->prepareQueryBuilder()->chunk($count, function (Collection $results) use ($callback) {
259
+        return $this->prepareQueryBuilder()->chunk($count, function(Collection $results) use ($callback) {
260 260
             $this->hydrateIntermediateRelations($results->all());
261 261
 
262 262
             return $callback($results);
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
         }
325 325
 
326 326
         $this->query->getQuery()->wheres = collect($this->query->getQuery()->wheres)
327
-            ->reject(function ($where) use ($columns) {
327
+            ->reject(function($where) use ($columns) {
328 328
                 return $where['type'] === 'Null' && in_array($where['column'], $columns);
329 329
             })->values()->all();
330 330
 
Please login to merge, or discard this patch.
src/HasRelationships.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     protected function hasOneOrManyDeepThroughParents(array $through)
93 93
     {
94
-        return array_map(function ($class) {
94
+        return array_map(function($class) {
95 95
             $segments = preg_split('/\s+as\s+/i', $class);
96 96
 
97 97
             $instance = Str::contains($segments[0], '\\')
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     protected function hasOneOrManyDeepForeignKeys(Model $related, array $throughParents, array $foreignKeys)
118 118
     {
119 119
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
120
-            if (! isset($foreignKeys[$i])) {
120
+            if (!isset($foreignKeys[$i])) {
121 121
                 if ($instance instanceof Pivot) {
122 122
                     $foreignKeys[$i] = ($throughParents[$i] ?? $related)->getKeyName();
123 123
                 } else {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     protected function hasOneOrManyDeepLocalKeys(Model $related, array $throughParents, array $localKeys)
141 141
     {
142 142
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
143
-            if (! isset($localKeys[$i])) {
143
+            if (!isset($localKeys[$i])) {
144 144
                 if ($instance instanceof Pivot) {
145 145
                     $localKeys[$i] = ($throughParents[$i] ?? $related)->getForeignKey();
146 146
                 } else {
Please login to merge, or discard this patch.