Completed
Push — master ( b15a35...48e5a7 )
by Jonas
03:02
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
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function hasOneOrManyDeepThroughParents(array $through)
94 94
     {
95
-        return array_map(function ($class) {
95
+        return array_map(function($class) {
96 96
             $segments = preg_split('/\s+as\s+/i', $class);
97 97
 
98 98
             $instance = Str::contains($segments[0], '\\')
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
121 121
             /** @var \Illuminate\Database\Eloquent\Model $instance */
122
-            if (! isset($foreignKeys[$i])) {
122
+            if (!isset($foreignKeys[$i])) {
123 123
                 if ($instance instanceof Pivot) {
124 124
                     $foreignKeys[$i] = ($throughParents[$i] ?? $related)->getKeyName();
125 125
                 } else {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     {
144 144
         foreach (array_merge([$this], $throughParents) as $i => $instance) {
145 145
             /** @var \Illuminate\Database\Eloquent\Model $instance */
146
-            if (! isset($localKeys[$i])) {
146
+            if (!isset($localKeys[$i])) {
147 147
                 if ($instance instanceof Pivot) {
148 148
                     $localKeys[$i] = ($throughParents[$i] ?? $related)->getForeignKey();
149 149
                 } else {
Please login to merge, or discard this patch.