Completed
Push — master ( 201f4e...cf86f4 )
by Michael
05:56
created
src/Arrgh.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -215,7 +215,9 @@  discard block
 block discarded – undo
215 215
         $direction = self::getSortDirection();
216 216
         return function($a, $b) use ($direction, $callable) {
217 217
             $result = $callable($a, $b);
218
-            if ($result === 0) return $direction;
218
+            if ($result === 0) {
219
+                return $direction;
220
+            }
219 221
             return $result;
220 222
         };
221 223
     }
@@ -663,8 +665,12 @@  discard block
 block discarded – undo
663 665
      */
664 666
     private static function arr_depth($array)
665 667
     {
666
-        if (empty($array) && is_array($array)) return 0;
667
-        if (!self::arr_is_collection($array)) return null;
668
+        if (empty($array) && is_array($array)) {
669
+            return 0;
670
+        }
671
+        if (!self::arr_is_collection($array)) {
672
+            return null;
673
+        }
668 674
 
669 675
         $depth = 0;
670 676
         $child = array_shift($array);
Please login to merge, or discard this patch.