Passed
Push — master ( 8db063...3a6957 )
by Amin
03:31
created
src/Utiles.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function concatKeyValue(array &$array, string $glue = ""): void
32 32
     {
33
-        array_walk($array, function (&$value, $key) use ($glue) {
33
+        array_walk($array, function(&$value, $key) use ($glue) {
34 34
             $value = "$key$glue$value";
35 35
         });
36 36
     }
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $new = [];
46 46
         foreach ($array as $key => $value) {
47
-            if(is_string($key)){
47
+            if (is_string($key)) {
48 48
                 array_push($new, $start_with . $key, $value);
49
-            }else{
49
+            } else {
50 50
                 $new = null;
51 51
                 break;
52 52
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         foreach ($array as $key => $value) {
47 47
             if(is_string($key)){
48 48
                 array_push($new, $start_with . $key, $value);
49
-            }else{
49
+            } else{
50 50
                 $new = null;
51 51
                 break;
52 52
             }
Please login to merge, or discard this patch.