Completed
Push — master ( 7511ca...693bba )
by Antonio Carlos
02:37
created
src/Support/Arr.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     {
316 316
         $keys = (array) $keys;
317 317
 
318
-        if (! $array || $keys === []) {
318
+        if (!$array || $keys === []) {
319 319
             return false;
320 320
         }
321 321
 
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
             // If the key doesn't exist at this depth, we will just create an empty array
518 518
             // to hold the next value, allowing us to create the arrays to hold final
519 519
             // values at the correct depth. Then we'll keep digging into the array.
520
-            if (! isset($array[$key]) || ! is_array($array[$key])) {
520
+            if (!isset($array[$key]) || !is_array($array[$key])) {
521 521
                 $array[$key] = [];
522 522
             }
523 523
 
Please login to merge, or discard this patch.