Completed
Push — master ( c43b67...867e3c )
by Michael
01:59
created
src/Arrgh.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -209,7 +209,9 @@  discard block
 block discarded – undo
209 209
         $direction = self::getSortDirection();
210 210
         return function ($a, $b) use ($direction, $callable) {
211 211
             $result = $callable($a, $b);
212
-            if ($result === 0) return $direction;
212
+            if ($result === 0) {
213
+                return $direction;
214
+            }
213 215
             return $result;
214 216
         };
215 217
     }
@@ -635,8 +637,12 @@  discard block
 block discarded – undo
635 637
      */
636 638
     private static function arrgh_depth($array)
637 639
     {
638
-        if (empty($array) && is_array($array)) return 0;
639
-        if (!self::arrgh_is_collection($array)) return null;
640
+        if (empty($array) && is_array($array)) {
641
+            return 0;
642
+        }
643
+        if (!self::arrgh_is_collection($array)) {
644
+            return null;
645
+        }
640 646
 
641 647
         $depth = 0;
642 648
         $child = array_shift($array);
Please login to merge, or discard this patch.