Completed
Push — master ( c24d4c...96117c )
by Sven
02:34
created
src/ArrayUtils.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             return [$d[$index_key] => $d[$column_key]];
32 32
         }
33 33
         return $d[$column_key];
34
-      }, $input);
34
+        }, $input);
35 35
         if ($index_key !== null) {
36 36
             $tmp = [];
37 37
             foreach ($arr as $ar) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $awr_func = $preserve_keys
114 114
         ? function ($v, $k) use (&$return) {$return[$k] = $v;}
115 115
         : function ($v) use (&$return) {$return[] = $v;}
116
-      ;
116
+        ;
117 117
         array_walk_recursive($input, $awr_func);
118 118
         return $return;
119 119
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         if (function_exists('array_column')) {
24 24
             return array_column($input, $column_key, $index_key);
25 25
         }
26
-        $arr = array_map(function ($d) use ($column_key, $index_key) {
26
+        $arr = array_map(function($d) use ($column_key, $index_key) {
27 27
         if (!isset($d[$column_key])) {
28 28
             return null;
29 29
         }
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $return = [];
113 113
         $awr_func = $preserve_keys
114
-        ? function ($v, $k) use (&$return) {$return[$k] = $v;}
115
-        : function ($v) use (&$return) {$return[] = $v;}
114
+        ? function($v, $k) use (&$return) {$return[$k] = $v; }
115
+        : function($v) use (&$return) {$return[] = $v; }
116 116
       ;
117 117
         array_walk_recursive($input, $awr_func);
118 118
         return $return;
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      * Return the values from a single column in the input array
15 15
      *
16 16
      * @param array $input
17
-     * @param string|int $column_key
17
+     * @param string $column_key
18 18
      * @param string $index_key
19 19
      * @return null|array
20 20
      */
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * Returns the value of the first found key-name
85 85
      *
86 86
      * @param array $input
87
-     * @param array $keys
87
+     * @param string[] $keys
88 88
      * @param string $default
89 89
      * @return mixed
90 90
      */
Please login to merge, or discard this patch.