Completed
Push — master ( 34f5b0...95bb8d )
by Aleksandar
12:01
created
src/SimpleArrayLibrary.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -89,22 +89,22 @@  discard block
 block discarded – undo
89 89
                 if (isset($row[$column]) || array_key_exists($column, $row)) {
90 90
                     switch ($type) {
91 91
                         case self::TYPE_INT:
92
-                            $matrix[$key][$column] = (int)$row[$column];
92
+                            $matrix[$key][$column] = (int) $row[$column];
93 93
                             break;
94 94
                         case self::TYPE_STRING:
95
-                            $matrix[$key][$column] = (string)$row[$column];
95
+                            $matrix[$key][$column] = (string) $row[$column];
96 96
                             break;
97 97
                         case self::TYPE_FLOAT:
98
-                            $matrix[$key][$column] = (float)$row[$column];
98
+                            $matrix[$key][$column] = (float) $row[$column];
99 99
                             break;
100 100
                         case self::TYPE_BOOL:
101
-                            $matrix[$key][$column] = (bool)$row[$column];
101
+                            $matrix[$key][$column] = (bool) $row[$column];
102 102
                             break;
103 103
                         case self::TYPE_ARRAY:
104
-                            $matrix[$key][$column] = (array)$row[$column];
104
+                            $matrix[$key][$column] = (array) $row[$column];
105 105
                             break;
106 106
                         case self::TYPE_OBJECT:
107
-                            $matrix[$key][$column] = (object)$row[$column];
107
+                            $matrix[$key][$column] = (object) $row[$column];
108 108
                             break;
109 109
                         default:
110 110
                             throw new UnexpectedValueException('Invalid type: ' . $type);
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
      */
420 420
     public static function isAssociative(array $array)
421 421
     {
422
-        return (bool)count(array_filter(array_keys($array), 'is_string'));
422
+        return (bool) count(array_filter(array_keys($array), 'is_string'));
423 423
     }
424 424
 
425 425
     /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,9 @@
 block discarded – undo
133 133
             if (is_array($element)) {
134 134
                 $depth += self::countMaxDepth($element);
135 135
             }
136
-            if ($depth > $maxDepth) $maxDepth = $depth;
136
+            if ($depth > $maxDepth) {
137
+                $maxDepth = $depth;
138
+            }
137 139
         }
138 140
 
139 141
         return $maxDepth;
Please login to merge, or discard this patch.