Completed
Push — master ( 62622d...2b3304 )
by Antonio Carlos
05:36 queued 03:53
created
src/Support/Str.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $languageSpecific = static::languageSpecificCharsArray($language);
58 58
 
59
-        if (! is_null($languageSpecific)) {
59
+        if (!is_null($languageSpecific)) {
60 60
             $value = str_replace($languageSpecific[0], $languageSpecific[1], $value);
61 61
         }
62 62
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     {
250 250
         preg_match('/^\s*+(?:\S++\s*+){1,'.$words.'}/u', $value, $matches);
251 251
 
252
-        if (! isset($matches[0]) || static::length($value) === static::length($matches[0])) {
252
+        if (!isset($matches[0]) || static::length($value) === static::length($matches[0])) {
253 253
             return $value;
254 254
         }
255 255
 
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
             return static::$snakeCache[$key][$delimiter];
468 468
         }
469 469
 
470
-        if (! ctype_lower($value)) {
470
+        if (!ctype_lower($value)) {
471 471
             $value = preg_replace('/\s+/u', '', ucwords($value));
472 472
 
473 473
             $value = static::lower(preg_replace('/(.)(?=[A-Z])/u', '$1'.$delimiter, $value));
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
     {
717 717
         static $languageSpecific;
718 718
 
719
-        if (! isset($languageSpecific)) {
719
+        if (!isset($languageSpecific)) {
720 720
             $languageSpecific = [
721 721
                 'bg' => [
722 722
                     ['х', 'Х', 'щ', 'Щ', 'ъ', 'Ъ', 'ь', 'Ь'],
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
                     ['ae', 'oe', 'aa', 'Ae', 'Oe', 'Aa'],
728 728
                 ],
729 729
                 'de' => [
730
-                    ['ä',  'ö',  'ü',  'Ä',  'Ö',  'Ü'],
730
+                    ['ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü'],
731 731
                     ['ae', 'oe', 'ue', 'AE', 'OE', 'UE'],
732 732
                 ],
733 733
                 'ro' => [
Please login to merge, or discard this patch.
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.