Completed
Push — master ( 7d0222...1df67d )
by Antonio Carlos
02:21
created
src/Support/helpers.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use IlluminateAgnostic\Collection\Support\Str;
4 3
 use IlluminateAgnostic\Collection\Support\Arr;
5 4
 use IlluminateAgnostic\Collection\Support\Collection;
6 5
 use IlluminateAgnostic\Collection\Support\Debug\Dumper;
7
-use Illuminate\Support\Collection as IlluminateCollection;
8 6
 
9 7
 if (!class_exists(Illuminate\Support\Collection::class)) {
10 8
     if (! function_exists('collect')) {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Illuminate\Support\Collection as IlluminateCollection;
8 8
 
9 9
 if (!class_exists(Illuminate\Support\Collection::class)) {
10
-    if (! function_exists('collect')) {
10
+    if (!function_exists('collect')) {
11 11
         /**
12 12
          * Create a collection from the given value.
13 13
          *
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         }
21 21
     }
22 22
 
23
-    if (! function_exists('value')) {
23
+    if (!function_exists('value')) {
24 24
         /**
25 25
          * Return the default value of the given value.
26 26
          *
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         }
34 34
     }
35 35
 
36
-    if (! function_exists('data_get')) {
36
+    if (!function_exists('data_get')) {
37 37
         /**
38 38
          * Get an item from an array or object using "dot" notation.
39 39
          *
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 
51 51
             $key = is_array($key) ? $key : explode('.', $key);
52 52
 
53
-            while (! is_null($segment = array_shift($key))) {
53
+            while (!is_null($segment = array_shift($key))) {
54 54
                 if ($segment === '*') {
55 55
                     if ($target instanceof Collection) {
56 56
                         $target = $target->all();
57
-                    } elseif (! is_array($target)) {
57
+                    } elseif (!is_array($target)) {
58 58
                         return value($default);
59 59
                     }
60 60
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         }
77 77
     }
78 78
 
79
-    if (! function_exists('dd')) {
79
+    if (!function_exists('dd')) {
80 80
         /**
81 81
          * Dump the passed variables and end the script.
82 82
          *
Please login to merge, or discard this patch.