Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
core/vendor/illuminate/pagination/AbstractPaginator.php 3 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Illuminate\Pagination;
4 4
 
5 5
 use Closure;
6
-use Illuminate\Support\Str;
7
-use Illuminate\Support\Collection;
8 6
 use Illuminate\Contracts\Support\Htmlable;
7
+use Illuminate\Support\Collection;
8
+use Illuminate\Support\Str;
9 9
 
10 10
 /**
11 11
  * @mixin \Illuminate\Support\Collection
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      */
129 129
     public function getUrlRange($start, $end)
130 130
     {
131
-        return collect(range($start, $end))->mapWithKeys(function ($page) {
131
+        return collect(range($start, $end))->mapWithKeys(function($page){
132 132
             return [$page => $this->url($page)];
133 133
         })->all();
134 134
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      */
129 129
     public function getUrlRange($start, $end)
130 130
     {
131
-        return collect(range($start, $end))->mapWithKeys(function ($page) {
131
+        return collect(range($start, $end))->mapWithKeys(function ($page){
132 132
             return [$page => $this->url($page)];
133 133
         })->all();
134 134
     }
Please login to merge, or discard this patch.
core/vendor/illuminate/pagination/LengthAwarePaginator.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Pagination;
4 4
 
5
-use Countable;
6 5
 use ArrayAccess;
7
-use JsonSerializable;
8
-use IteratorAggregate;
6
+use Countable;
7
+use Illuminate\Contracts\Pagination\LengthAwarePaginator as LengthAwarePaginatorContract;
8
+use Illuminate\Contracts\Support\Arrayable;
9
+use Illuminate\Contracts\Support\Jsonable;
9 10
 use Illuminate\Support\Collection;
10 11
 use Illuminate\Support\HtmlString;
11
-use Illuminate\Contracts\Support\Jsonable;
12
-use Illuminate\Contracts\Support\Arrayable;
13
-use Illuminate\Contracts\Pagination\LengthAwarePaginator as LengthAwarePaginatorContract;
12
+use IteratorAggregate;
13
+use JsonSerializable;
14 14
 
15 15
 class LengthAwarePaginator extends AbstractPaginator implements Arrayable, ArrayAccess, Countable, IteratorAggregate, JsonSerializable, Jsonable, LengthAwarePaginatorContract
16 16
 {
Please login to merge, or discard this patch.
core/vendor/illuminate/pagination/Paginator.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @param  string|null  $view
90 90
      * @param  array  $data
91
-     * @return string
91
+     * @return HtmlString
92 92
      */
93 93
     public function links($view = null, $data = [])
94 94
     {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @param  string|null  $view
102 102
      * @param  array  $data
103
-     * @return string
103
+     * @return HtmlString
104 104
      */
105 105
     public function render($view = null, $data = [])
106 106
     {
Please login to merge, or discard this patch.
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Pagination;
4 4
 
5
-use Countable;
6 5
 use ArrayAccess;
7
-use JsonSerializable;
8
-use IteratorAggregate;
6
+use Countable;
7
+use Illuminate\Contracts\Pagination\Paginator as PaginatorContract;
8
+use Illuminate\Contracts\Support\Arrayable;
9
+use Illuminate\Contracts\Support\Jsonable;
9 10
 use Illuminate\Support\Collection;
10 11
 use Illuminate\Support\HtmlString;
11
-use Illuminate\Contracts\Support\Jsonable;
12
-use Illuminate\Contracts\Support\Arrayable;
13
-use Illuminate\Contracts\Pagination\Paginator as PaginatorContract;
12
+use IteratorAggregate;
13
+use JsonSerializable;
14 14
 
15 15
 class Paginator extends AbstractPaginator implements Arrayable, ArrayAccess, Countable, IteratorAggregate, JsonSerializable, Jsonable, PaginatorContract
16 16
 {
Please login to merge, or discard this patch.
core/vendor/illuminate/support/Arr.php 3 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Illuminate\Support;
4 4
 
5 5
 use ArrayAccess;
6
-use InvalidArgumentException;
7 6
 use Illuminate\Support\Traits\Macroable;
7
+use InvalidArgumentException;
8 8
 
9 9
 class Arr
10 10
 {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         foreach ($array as $values) {
52 52
             if ($values instanceof Collection) {
53 53
                 $values = $values->all();
54
-            } elseif (! is_array($values)) {
54
+            } elseif (!is_array($values)) {
55 55
                 continue;
56 56
             }
57 57
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $results = [];
112 112
 
113 113
         foreach ($array as $key => $value) {
114
-            if (is_array($value) && ! empty($value)) {
114
+            if (is_array($value) && !empty($value)) {
115 115
                 $results = array_merge($results, static::dot($value, $prepend.$key.'.'));
116 116
             } else {
117 117
                 $results[$prepend.$key] = $value;
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         foreach ($array as $item) {
212 212
             $item = $item instanceof Collection ? $item->all() : $item;
213 213
 
214
-            if (! is_array($item)) {
214
+            if (!is_array($item)) {
215 215
                 $result[] = $item;
216 216
             } elseif ($depth === 1) {
217 217
                 $result = array_merge($result, array_values($item));
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      */
278 278
     public static function get($array, $key, $default = null)
279 279
     {
280
-        if (! static::accessible($array)) {
280
+        if (!static::accessible($array)) {
281 281
             return value($default);
282 282
         }
283 283
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 
320 320
         $keys = (array) $keys;
321 321
 
322
-        if (! $array) {
322
+        if (!$array) {
323 323
             return false;
324 324
         }
325 325
 
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
             // If the key doesn't exist at this depth, we will just create an empty array
526 526
             // to hold the next value, allowing us to create the arrays to hold final
527 527
             // values at the correct depth. Then we'll keep digging into the array.
528
-            if (! isset($array[$key]) || ! is_array($array[$key])) {
528
+            if (!isset($array[$key]) || !is_array($array[$key])) {
529 529
                 $array[$key] = [];
530 530
             }
531 531
 
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
         } else {
552 552
             srand($seed);
553 553
 
554
-            usort($array, function () {
554
+            usort($array, function(){
555 555
                 return rand(-1, 1);
556 556
             });
557 557
         }
@@ -618,6 +618,6 @@  discard block
 block discarded – undo
618 618
             return [];
619 619
         }
620 620
 
621
-        return ! is_array($value) ? [$value] : $value;
621
+        return !is_array($value) ? [$value] : $value;
622 622
     }
623 623
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -551,7 +551,7 @@
 block discarded – undo
551 551
         } else {
552 552
             srand($seed);
553 553
 
554
-            usort($array, function () {
554
+            usort($array, function (){
555 555
                 return rand(-1, 1);
556 556
             });
557 557
         }
Please login to merge, or discard this patch.
core/vendor/illuminate/support/Collection.php 4 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     /**
446 446
      * Get all items except for those with the specified keys.
447 447
      *
448
-     * @param  \Illuminate\Support\Collection|mixed  $keys
448
+     * @param  string  $keys
449 449
      * @return static
450 450
      */
451 451
     public function except($keys)
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
      * Filter items by the given key value pair.
511 511
      *
512 512
      * @param  string  $key
513
-     * @param  mixed  $operator
513
+     * @param  string  $operator
514 514
      * @param  mixed  $value
515 515
      * @return static
516 516
      */
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
      * Get the first item from the collection.
650 650
      *
651 651
      * @param  callable|null  $callback
652
-     * @param  mixed  $default
652
+     * @param  stdClass  $default
653 653
      * @return mixed
654 654
      */
655 655
     public function first(callable $callback = null, $default = null)
@@ -1316,7 +1316,7 @@  discard block
 block discarded – undo
1316 1316
     /**
1317 1317
      * Create a collection of all elements that do not pass a given truth test.
1318 1318
      *
1319
-     * @param  callable|mixed  $callback
1319
+     * @param  \Closure  $callback
1320 1320
      * @return static
1321 1321
      */
1322 1322
     public function reject($callback)
@@ -1879,7 +1879,7 @@  discard block
 block discarded – undo
1879 1879
      * Dynamically access collection proxies.
1880 1880
      *
1881 1881
      * @param  string  $key
1882
-     * @return mixed
1882
+     * @return HigherOrderCollectionProxy
1883 1883
      *
1884 1884
      * @throws \Exception
1885 1885
      */
Please login to merge, or discard this patch.
Unused Use Statements   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,19 +2,19 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Support;
4 4
 
5
-use stdClass;
6
-use Countable;
7
-use Exception;
8 5
 use ArrayAccess;
9
-use Traversable;
10 6
 use ArrayIterator;
11 7
 use CachingIterator;
12
-use JsonSerializable;
13
-use IteratorAggregate;
8
+use Countable;
9
+use Exception;
10
+use Illuminate\Contracts\Support\Arrayable;
11
+use Illuminate\Contracts\Support\Jsonable;
14 12
 use Illuminate\Support\Debug\Dumper;
15 13
 use Illuminate\Support\Traits\Macroable;
16
-use Illuminate\Contracts\Support\Jsonable;
17
-use Illuminate\Contracts\Support\Arrayable;
14
+use IteratorAggregate;
15
+use JsonSerializable;
16
+use Traversable;
17
+use stdClass;
18 18
 
19 19
 /**
20 20
  * @property-read HigherOrderCollectionProxy $average
Please login to merge, or discard this patch.
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
         $counts = new self;
209 209
 
210
-        $collection->each(function ($value) use ($counts) {
210
+        $collection->each(function($value) use ($counts) {
211 211
             $counts[$value] = isset($counts[$value]) ? $counts[$value] + 1 : 1;
212 212
         });
213 213
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
         $highestValue = $sorted->last();
217 217
 
218
-        return $sorted->filter(function ($value) use ($highestValue) {
218
+        return $sorted->filter(function($value) use ($highestValue) {
219 219
             return $value == $highestValue;
220 220
         })->sort()->keys()->all();
221 221
     }
@@ -263,13 +263,13 @@  discard block
 block discarded – undo
263 263
     public function containsStrict($key, $value = null)
264 264
     {
265 265
         if (func_num_args() === 2) {
266
-            return $this->contains(function ($item) use ($key, $value) {
266
+            return $this->contains(function($item) use ($key, $value) {
267 267
                 return data_get($item, $key) === $value;
268 268
             });
269 269
         }
270 270
 
271 271
         if ($this->useAsCallable($key)) {
272
-            return ! is_null($this->first($key));
272
+            return !is_null($this->first($key));
273 273
         }
274 274
 
275 275
         return in_array($key, $this->items, true);
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     {
310 310
         (new static(func_get_args()))
311 311
             ->push($this)
312
-            ->each(function ($item) {
312
+            ->each(function($item){
313 313
                 (new Dumper)->dump($item);
314 314
             });
315 315
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     public function eachSpread(callable $callback)
412 412
     {
413
-        return $this->each(function ($chunk, $key) use ($callback) {
413
+        return $this->each(function($chunk, $key) use ($callback) {
414 414
             $chunk[] = $key;
415 415
 
416 416
             return $callback(...$chunk);
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
             $callback = $this->valueRetriever($key);
432 432
 
433 433
             foreach ($this->items as $k => $v) {
434
-                if (! $callback($v, $k)) {
434
+                if (!$callback($v, $k)) {
435 435
                     return false;
436 436
                 }
437 437
             }
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
     {
453 453
         if ($keys instanceof self) {
454 454
             $keys = $keys->all();
455
-        } elseif (! is_array($keys)) {
455
+        } elseif (!is_array($keys)) {
456 456
             $keys = func_get_args();
457 457
         }
458 458
 
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
      */
504 504
     public function unless($value, callable $callback, callable $default = null)
505 505
     {
506
-        return $this->when(! $value, $callback, $default);
506
+        return $this->when(!$value, $callback, $default);
507 507
     }
508 508
 
509 509
     /**
@@ -535,10 +535,10 @@  discard block
 block discarded – undo
535 535
             $operator = '=';
536 536
         }
537 537
 
538
-        return function ($item) use ($key, $operator, $value) {
538
+        return function($item) use ($key, $operator, $value) {
539 539
             $retrieved = data_get($item, $key);
540 540
 
541
-            $strings = array_filter([$retrieved, $value], function ($value) {
541
+            $strings = array_filter([$retrieved, $value], function($value){
542 542
                 return is_string($value) || (is_object($value) && method_exists($value, '__toString'));
543 543
             });
544 544
 
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
     {
587 587
         $values = $this->getArrayableItems($values);
588 588
 
589
-        return $this->filter(function ($item) use ($key, $values, $strict) {
589
+        return $this->filter(function($item) use ($key, $values, $strict) {
590 590
             return in_array(data_get($item, $key), $values, $strict);
591 591
         });
592 592
     }
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     {
616 616
         $values = $this->getArrayableItems($values);
617 617
 
618
-        return $this->reject(function ($item) use ($key, $values, $strict) {
618
+        return $this->reject(function($item) use ($key, $values, $strict) {
619 619
             return in_array(data_get($item, $key), $values, $strict);
620 620
         });
621 621
     }
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
      */
641 641
     public function whereInstanceOf($type)
642 642
     {
643
-        return $this->filter(function ($value) use ($type) {
643
+        return $this->filter(function($value) use ($type) {
644 644
             return $value instanceof $type;
645 645
         });
646 646
     }
@@ -744,14 +744,14 @@  discard block
 block discarded – undo
744 744
         foreach ($this->items as $key => $value) {
745 745
             $groupKeys = $groupBy($value, $key);
746 746
 
747
-            if (! is_array($groupKeys)) {
747
+            if (!is_array($groupKeys)) {
748 748
                 $groupKeys = [$groupKeys];
749 749
             }
750 750
 
751 751
             foreach ($groupKeys as $groupKey) {
752 752
                 $groupKey = is_bool($groupKey) ? (int) $groupKey : $groupKey;
753 753
 
754
-                if (! array_key_exists($groupKey, $results)) {
754
+                if (!array_key_exists($groupKey, $results)) {
755 755
                     $results[$groupKey] = new static;
756 756
                 }
757 757
 
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 
762 762
         $result = new static($results);
763 763
 
764
-        if (! empty($nextGroups)) {
764
+        if (!empty($nextGroups)) {
765 765
             return $result->map->groupBy($nextGroups, $preserveKeys);
766 766
         }
767 767
 
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
         $keys = is_array($key) ? $key : func_get_args();
805 805
 
806 806
         foreach ($keys as $value) {
807
-            if (! $this->offsetExists($value)) {
807
+            if (!$this->offsetExists($value)) {
808 808
                 return false;
809 809
             }
810 810
         }
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
      */
872 872
     public function isNotEmpty()
873 873
     {
874
-        return ! $this->isEmpty();
874
+        return !$this->isEmpty();
875 875
     }
876 876
 
877 877
     /**
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
      */
883 883
     protected function useAsCallable($value)
884 884
     {
885
-        return ! is_string($value) && is_callable($value);
885
+        return !is_string($value) && is_callable($value);
886 886
     }
887 887
 
888 888
     /**
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
      */
943 943
     public function mapSpread(callable $callback)
944 944
     {
945
-        return $this->map(function ($chunk, $key) use ($callback) {
945
+        return $this->map(function($chunk, $key) use ($callback) {
946 946
             $chunk[] = $key;
947 947
 
948 948
             return $callback(...$chunk);
@@ -968,7 +968,7 @@  discard block
 block discarded – undo
968 968
 
969 969
             $value = reset($pair);
970 970
 
971
-            if (! isset($dictionary[$key])) {
971
+            if (!isset($dictionary[$key])) {
972 972
                 $dictionary[$key] = [];
973 973
             }
974 974
 
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
      */
1036 1036
     public function mapInto($class)
1037 1037
     {
1038
-        return $this->map(function ($value, $key) use ($class) {
1038
+        return $this->map(function($value, $key) use ($class) {
1039 1039
             return new $class($value, $key);
1040 1040
         });
1041 1041
     }
@@ -1050,9 +1050,9 @@  discard block
 block discarded – undo
1050 1050
     {
1051 1051
         $callback = $this->valueRetriever($callback);
1052 1052
 
1053
-        return $this->filter(function ($value) {
1054
-            return ! is_null($value);
1055
-        })->reduce(function ($result, $item) use ($callback) {
1053
+        return $this->filter(function($value){
1054
+            return !is_null($value);
1055
+        })->reduce(function($result, $item) use ($callback) {
1056 1056
             $value = $callback($item);
1057 1057
 
1058 1058
             return is_null($result) || $value > $result ? $value : $result;
@@ -1102,9 +1102,9 @@  discard block
 block discarded – undo
1102 1102
     {
1103 1103
         $callback = $this->valueRetriever($callback);
1104 1104
 
1105
-        return $this->filter(function ($value) {
1106
-            return ! is_null($value);
1107
-        })->reduce(function ($result, $item) use ($callback) {
1105
+        return $this->filter(function($value){
1106
+            return !is_null($value);
1107
+        })->reduce(function($result, $item) use ($callback) {
1108 1108
             $value = $callback($item);
1109 1109
 
1110 1110
             return is_null($result) || $value < $result ? $value : $result;
@@ -1187,7 +1187,7 @@  discard block
 block discarded – undo
1187 1187
                 : $this->operatorForWhere(...func_get_args());
1188 1188
 
1189 1189
         foreach ($this->items as $key => $item) {
1190
-            $partitions[(int) ! $callback($item, $key)][$key] = $item;
1190
+            $partitions[(int) !$callback($item, $key)][$key] = $item;
1191 1191
         }
1192 1192
 
1193 1193
         return new static($partitions);
@@ -1322,12 +1322,12 @@  discard block
 block discarded – undo
1322 1322
     public function reject($callback)
1323 1323
     {
1324 1324
         if ($this->useAsCallable($callback)) {
1325
-            return $this->filter(function ($value, $key) use ($callback) {
1326
-                return ! $callback($value, $key);
1325
+            return $this->filter(function($value, $key) use ($callback) {
1326
+                return !$callback($value, $key);
1327 1327
             });
1328 1328
         }
1329 1329
 
1330
-        return $this->filter(function ($item) use ($callback) {
1330
+        return $this->filter(function($item) use ($callback) {
1331 1331
             return $item != $callback;
1332 1332
         });
1333 1333
     }
@@ -1351,7 +1351,7 @@  discard block
 block discarded – undo
1351 1351
      */
1352 1352
     public function search($value, $strict = false)
1353 1353
     {
1354
-        if (! $this->useAsCallable($value)) {
1354
+        if (!$this->useAsCallable($value)) {
1355 1355
             return array_search($value, $this->items, $strict);
1356 1356
         }
1357 1357
 
@@ -1556,7 +1556,7 @@  discard block
 block discarded – undo
1556 1556
 
1557 1557
         $callback = $this->valueRetriever($callback);
1558 1558
 
1559
-        return $this->reduce(function ($result, $item) use ($callback) {
1559
+        return $this->reduce(function($result, $item) use ($callback) {
1560 1560
             return $result + $callback($item);
1561 1561
         }, 0);
1562 1562
     }
@@ -1615,7 +1615,7 @@  discard block
 block discarded – undo
1615 1615
 
1616 1616
         $exists = [];
1617 1617
 
1618
-        return $this->reject(function ($item, $key) use ($callback, $strict, &$exists) {
1618
+        return $this->reject(function($item, $key) use ($callback, $strict, &$exists) {
1619 1619
             if (in_array($id = $callback($item, $key), $exists, $strict)) {
1620 1620
                 return true;
1621 1621
             }
@@ -1657,7 +1657,7 @@  discard block
 block discarded – undo
1657 1657
             return $value;
1658 1658
         }
1659 1659
 
1660
-        return function ($item) use ($value) {
1660
+        return function($item) use ($value) {
1661 1661
             return data_get($item, $value);
1662 1662
         };
1663 1663
     }
@@ -1673,11 +1673,11 @@  discard block
 block discarded – undo
1673 1673
      */
1674 1674
     public function zip($items)
1675 1675
     {
1676
-        $arrayableItems = array_map(function ($items) {
1676
+        $arrayableItems = array_map(function($items){
1677 1677
             return $this->getArrayableItems($items);
1678 1678
         }, func_get_args());
1679 1679
 
1680
-        $params = array_merge([function () {
1680
+        $params = array_merge([function(){
1681 1681
             return new static(func_get_args());
1682 1682
         }, $this->items], $arrayableItems);
1683 1683
 
@@ -1703,7 +1703,7 @@  discard block
 block discarded – undo
1703 1703
      */
1704 1704
     public function toArray()
1705 1705
     {
1706
-        return array_map(function ($value) {
1706
+        return array_map(function($value){
1707 1707
             return $value instanceof Arrayable ? $value->toArray() : $value;
1708 1708
         }, $this->items);
1709 1709
     }
@@ -1715,7 +1715,7 @@  discard block
 block discarded – undo
1715 1715
      */
1716 1716
     public function jsonSerialize()
1717 1717
     {
1718
-        return array_map(function ($value) {
1718
+        return array_map(function($value){
1719 1719
             if ($value instanceof JsonSerializable) {
1720 1720
                 return $value->jsonSerialize();
1721 1721
             } elseif ($value instanceof Jsonable) {
@@ -1885,7 +1885,7 @@  discard block
 block discarded – undo
1885 1885
      */
1886 1886
     public function __get($key)
1887 1887
     {
1888
-        if (! in_array($key, static::$proxies)) {
1888
+        if (!in_array($key, static::$proxies)) {
1889 1889
             throw new Exception("Property [{$key}] does not exist on this collection instance.");
1890 1890
         }
1891 1891
 
Please login to merge, or discard this patch.
Braces   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
         $counts = new self;
209 209
 
210
-        $collection->each(function ($value) use ($counts) {
210
+        $collection->each(function ($value) use ($counts){
211 211
             $counts[$value] = isset($counts[$value]) ? $counts[$value] + 1 : 1;
212 212
         });
213 213
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
         $highestValue = $sorted->last();
217 217
 
218
-        return $sorted->filter(function ($value) use ($highestValue) {
218
+        return $sorted->filter(function ($value) use ($highestValue){
219 219
             return $value == $highestValue;
220 220
         })->sort()->keys()->all();
221 221
     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     public function containsStrict($key, $value = null)
264 264
     {
265 265
         if (func_num_args() === 2) {
266
-            return $this->contains(function ($item) use ($key, $value) {
266
+            return $this->contains(function ($item) use ($key, $value){
267 267
                 return data_get($item, $key) === $value;
268 268
             });
269 269
         }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     {
310 310
         (new static(func_get_args()))
311 311
             ->push($this)
312
-            ->each(function ($item) {
312
+            ->each(function ($item){
313 313
                 (new Dumper)->dump($item);
314 314
             });
315 315
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     public function eachSpread(callable $callback)
412 412
     {
413
-        return $this->each(function ($chunk, $key) use ($callback) {
413
+        return $this->each(function ($chunk, $key) use ($callback){
414 414
             $chunk[] = $key;
415 415
 
416 416
             return $callback(...$chunk);
@@ -535,10 +535,10 @@  discard block
 block discarded – undo
535 535
             $operator = '=';
536 536
         }
537 537
 
538
-        return function ($item) use ($key, $operator, $value) {
538
+        return function ($item) use ($key, $operator, $value){
539 539
             $retrieved = data_get($item, $key);
540 540
 
541
-            $strings = array_filter([$retrieved, $value], function ($value) {
541
+            $strings = array_filter([$retrieved, $value], function ($value){
542 542
                 return is_string($value) || (is_object($value) && method_exists($value, '__toString'));
543 543
             });
544 544
 
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
     {
587 587
         $values = $this->getArrayableItems($values);
588 588
 
589
-        return $this->filter(function ($item) use ($key, $values, $strict) {
589
+        return $this->filter(function ($item) use ($key, $values, $strict){
590 590
             return in_array(data_get($item, $key), $values, $strict);
591 591
         });
592 592
     }
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     {
616 616
         $values = $this->getArrayableItems($values);
617 617
 
618
-        return $this->reject(function ($item) use ($key, $values, $strict) {
618
+        return $this->reject(function ($item) use ($key, $values, $strict){
619 619
             return in_array(data_get($item, $key), $values, $strict);
620 620
         });
621 621
     }
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
      */
641 641
     public function whereInstanceOf($type)
642 642
     {
643
-        return $this->filter(function ($value) use ($type) {
643
+        return $this->filter(function ($value) use ($type){
644 644
             return $value instanceof $type;
645 645
         });
646 646
     }
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
      */
943 943
     public function mapSpread(callable $callback)
944 944
     {
945
-        return $this->map(function ($chunk, $key) use ($callback) {
945
+        return $this->map(function ($chunk, $key) use ($callback){
946 946
             $chunk[] = $key;
947 947
 
948 948
             return $callback(...$chunk);
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
      */
1036 1036
     public function mapInto($class)
1037 1037
     {
1038
-        return $this->map(function ($value, $key) use ($class) {
1038
+        return $this->map(function ($value, $key) use ($class){
1039 1039
             return new $class($value, $key);
1040 1040
         });
1041 1041
     }
@@ -1050,9 +1050,9 @@  discard block
 block discarded – undo
1050 1050
     {
1051 1051
         $callback = $this->valueRetriever($callback);
1052 1052
 
1053
-        return $this->filter(function ($value) {
1053
+        return $this->filter(function ($value){
1054 1054
             return ! is_null($value);
1055
-        })->reduce(function ($result, $item) use ($callback) {
1055
+        })->reduce(function ($result, $item) use ($callback){
1056 1056
             $value = $callback($item);
1057 1057
 
1058 1058
             return is_null($result) || $value > $result ? $value : $result;
@@ -1102,9 +1102,9 @@  discard block
 block discarded – undo
1102 1102
     {
1103 1103
         $callback = $this->valueRetriever($callback);
1104 1104
 
1105
-        return $this->filter(function ($value) {
1105
+        return $this->filter(function ($value){
1106 1106
             return ! is_null($value);
1107
-        })->reduce(function ($result, $item) use ($callback) {
1107
+        })->reduce(function ($result, $item) use ($callback){
1108 1108
             $value = $callback($item);
1109 1109
 
1110 1110
             return is_null($result) || $value < $result ? $value : $result;
@@ -1322,12 +1322,12 @@  discard block
 block discarded – undo
1322 1322
     public function reject($callback)
1323 1323
     {
1324 1324
         if ($this->useAsCallable($callback)) {
1325
-            return $this->filter(function ($value, $key) use ($callback) {
1325
+            return $this->filter(function ($value, $key) use ($callback){
1326 1326
                 return ! $callback($value, $key);
1327 1327
             });
1328 1328
         }
1329 1329
 
1330
-        return $this->filter(function ($item) use ($callback) {
1330
+        return $this->filter(function ($item) use ($callback){
1331 1331
             return $item != $callback;
1332 1332
         });
1333 1333
     }
@@ -1556,7 +1556,7 @@  discard block
 block discarded – undo
1556 1556
 
1557 1557
         $callback = $this->valueRetriever($callback);
1558 1558
 
1559
-        return $this->reduce(function ($result, $item) use ($callback) {
1559
+        return $this->reduce(function ($result, $item) use ($callback){
1560 1560
             return $result + $callback($item);
1561 1561
         }, 0);
1562 1562
     }
@@ -1615,7 +1615,7 @@  discard block
 block discarded – undo
1615 1615
 
1616 1616
         $exists = [];
1617 1617
 
1618
-        return $this->reject(function ($item, $key) use ($callback, $strict, &$exists) {
1618
+        return $this->reject(function ($item, $key) use ($callback, $strict, &$exists){
1619 1619
             if (in_array($id = $callback($item, $key), $exists, $strict)) {
1620 1620
                 return true;
1621 1621
             }
@@ -1657,7 +1657,7 @@  discard block
 block discarded – undo
1657 1657
             return $value;
1658 1658
         }
1659 1659
 
1660
-        return function ($item) use ($value) {
1660
+        return function ($item) use ($value){
1661 1661
             return data_get($item, $value);
1662 1662
         };
1663 1663
     }
@@ -1673,11 +1673,11 @@  discard block
 block discarded – undo
1673 1673
      */
1674 1674
     public function zip($items)
1675 1675
     {
1676
-        $arrayableItems = array_map(function ($items) {
1676
+        $arrayableItems = array_map(function ($items){
1677 1677
             return $this->getArrayableItems($items);
1678 1678
         }, func_get_args());
1679 1679
 
1680
-        $params = array_merge([function () {
1680
+        $params = array_merge([function (){
1681 1681
             return new static(func_get_args());
1682 1682
         }, $this->items], $arrayableItems);
1683 1683
 
@@ -1703,7 +1703,7 @@  discard block
 block discarded – undo
1703 1703
      */
1704 1704
     public function toArray()
1705 1705
     {
1706
-        return array_map(function ($value) {
1706
+        return array_map(function ($value){
1707 1707
             return $value instanceof Arrayable ? $value->toArray() : $value;
1708 1708
         }, $this->items);
1709 1709
     }
@@ -1715,7 +1715,7 @@  discard block
 block discarded – undo
1715 1715
      */
1716 1716
     public function jsonSerialize()
1717 1717
     {
1718
-        return array_map(function ($value) {
1718
+        return array_map(function ($value){
1719 1719
             if ($value instanceof JsonSerializable) {
1720 1720
                 return $value->jsonSerialize();
1721 1721
             } elseif ($value instanceof Jsonable) {
Please login to merge, or discard this patch.
core/vendor/illuminate/support/Composer.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Illuminate\Support;
4 4
 
5 5
 use Illuminate\Filesystem\Filesystem;
6
-use Symfony\Component\Process\Process;
7 6
 use Symfony\Component\Process\PhpExecutableFinder;
7
+use Symfony\Component\Process\Process;
8 8
 
9 9
 class Composer
10 10
 {
Please login to merge, or discard this patch.
core/vendor/illuminate/support/Facades/Bus.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Support\Facades;
4 4
 
5
-use Illuminate\Support\Testing\Fakes\BusFake;
6 5
 use Illuminate\Contracts\Bus\Dispatcher as BusDispatcherContract;
6
+use Illuminate\Support\Testing\Fakes\BusFake;
7 7
 
8 8
 /**
9 9
  * @method static mixed dispatch($command)
Please login to merge, or discard this patch.
core/vendor/illuminate/support/Facades/Facade.php 3 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Illuminate\Support\Facades;
4 4
 
5 5
 use Mockery;
6
-use RuntimeException;
7 6
 use Mockery\MockInterface;
7
+use RuntimeException;
8 8
 
9 9
 abstract class Facade
10 10
 {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public static function spy()
31 31
     {
32
-        if (! static::isMock()) {
32
+        if (!static::isMock()) {
33 33
             $class = static::getMockableClass();
34 34
 
35
-            return tap($class ? Mockery::spy($class) : Mockery::spy(), function ($spy) {
35
+            return tap($class ? Mockery::spy($class) : Mockery::spy(), function($spy){
36 36
                 static::swap($spy);
37 37
             });
38 38
         }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected static function createFreshMockInstance()
63 63
     {
64
-        return tap(static::createMock(), function ($mock) {
64
+        return tap(static::createMock(), function($mock){
65 65
             static::swap($mock);
66 66
 
67 67
             $mock->shouldAllowMockingProtectedMethods();
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     {
217 217
         $instance = static::getFacadeRoot();
218 218
 
219
-        if (! $instance) {
219
+        if (!$instance) {
220 220
             throw new RuntimeException('A facade root has not been set.');
221 221
         }
222 222
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         if (! static::isMock()) {
33 33
             $class = static::getMockableClass();
34 34
 
35
-            return tap($class ? Mockery::spy($class) : Mockery::spy(), function ($spy) {
35
+            return tap($class ? Mockery::spy($class) : Mockery::spy(), function ($spy){
36 36
                 static::swap($spy);
37 37
             });
38 38
         }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected static function createFreshMockInstance()
63 63
     {
64
-        return tap(static::createMock(), function ($mock) {
64
+        return tap(static::createMock(), function ($mock){
65 65
             static::swap($mock);
66 66
 
67 67
             $mock->shouldAllowMockingProtectedMethods();
Please login to merge, or discard this patch.
core/vendor/illuminate/support/Facades/Notification.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Illuminate\Support\Facades;
4 4
 
5
-use Illuminate\Notifications\ChannelManager;
6 5
 use Illuminate\Notifications\AnonymousNotifiable;
6
+use Illuminate\Notifications\ChannelManager;
7 7
 use Illuminate\Support\Testing\Fakes\NotificationFake;
8 8
 
9 9
 /**
Please login to merge, or discard this patch.