Completed
Pull Request — master (#214)
by Wahiba
04:55 queued 01:56
created
lib/Utils/ArrayHelpers.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@  discard block
 block discarded – undo
5 5
 class ArrayHelpers
6 6
 {
7 7
     /**
8
-    * Checks if an array is associative.
9
-    *
10
-    * @since 0.1.0
11
-    *
12
-    * @param array $array The array to check.
13
-    *
14
-    * @return boolean
15
-    */
8
+     * Checks if an array is associative.
9
+     *
10
+     * @since 0.1.0
11
+     *
12
+     * @param array $array The array to check.
13
+     *
14
+     * @return boolean
15
+     */
16 16
     public static function isAssoc(array $array)
17 17
     {
18 18
         // Keys of the array
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-    * Converts indexed values to associative keys.
28
-    *
29
-    * @since 0.1.0
30
-    *
31
-    * @param array $array The array to convert.
32
-    *
33
-    * @return array
34
-    */
27
+     * Converts indexed values to associative keys.
28
+     *
29
+     * @since 0.1.0
30
+     *
31
+     * @param array $array The array to convert.
32
+     *
33
+     * @return array
34
+     */
35 35
     public static function indexedValuesToAssocKeys(array $array)
36 36
     {
37 37
         $values = array_map(function ($value) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
     */
35 35
     public static function indexedValuesToAssocKeys(array $array)
36 36
     {
37
-        $values = array_map(function ($value) {
37
+        $values = array_map(function($value) {
38 38
             return is_array($value) ? $value : [];
39 39
         }, $array);
40 40
 
41
-        $keys = array_map(function ($key) use ($array) {
41
+        $keys = array_map(function($key) use ($array) {
42 42
             return is_int($key) ? $array[$key] : $key;
43 43
         }, array_keys($array));
44 44
 
Please login to merge, or discard this patch.