@@ -1,6 +1,5 @@ |
||
| 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; |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | use IlluminateAgnostic\Collection\Support\Debug\Dumper; |
| 7 | 7 | |
| 8 | 8 | if (!class_exists(Illuminate\Support\Collection::class)) { |
| 9 | - if (! function_exists('collect')) { |
|
| 9 | + if (!function_exists('collect')) { |
|
| 10 | 10 | /** |
| 11 | 11 | * Create a collection from the given value. |
| 12 | 12 | * |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - if (! function_exists('value')) { |
|
| 22 | + if (!function_exists('value')) { |
|
| 23 | 23 | /** |
| 24 | 24 | * Return the default value of the given value. |
| 25 | 25 | * |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - if (! function_exists('data_get')) { |
|
| 35 | + if (!function_exists('data_get')) { |
|
| 36 | 36 | /** |
| 37 | 37 | * Get an item from an array or object using "dot" notation. |
| 38 | 38 | * |
@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $key = is_array($key) ? $key : explode('.', $key); |
| 51 | 51 | |
| 52 | - while (! is_null($segment = array_shift($key))) { |
|
| 52 | + while (!is_null($segment = array_shift($key))) { |
|
| 53 | 53 | if ($segment === '*') { |
| 54 | 54 | if ($target instanceof Collection) { |
| 55 | 55 | $target = $target->all(); |
| 56 | - } elseif (! is_array($target)) { |
|
| 56 | + } elseif (!is_array($target)) { |
|
| 57 | 57 | return value($default); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - if (! function_exists('with')) { |
|
| 78 | + if (!function_exists('with')) { |
|
| 79 | 79 | /** |
| 80 | 80 | * Return the given object. Useful for chaining. |
| 81 | 81 | * |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - if (! function_exists('dd')) { |
|
| 91 | + if (!function_exists('dd')) { |
|
| 92 | 92 | /** |
| 93 | 93 | * Dump the passed variables and end the script. |
| 94 | 94 | * |