@@ -1,10 +1,8 @@ |
||
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')) { |
@@ -7,7 +7,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | * |