Test Setup Failed
Pull Request — master (#69)
by
unknown
54s
created
Plugin.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -337,13 +337,16 @@
 block discarded – undo
337 337
                 return $result;
338 338
             },
339 339
             'shuffle' => function ($array) {
340
-                if (!is_array($array)) return $array;
340
+                if (!is_array($array)) {
341
+                    return $array;
342
+                }
341 343
 
342 344
                 $keys = array_keys($array);
343 345
                 shuffle($keys);
344 346
                 $random = array();
345
-                foreach ($keys as $key)
346
-                    $random[$key] = $array[$key];
347
+                foreach ($keys as $key) {
348
+                                    $random[$key] = $array[$key];
349
+                }
347 350
 
348 351
                 return $random;
349 352
             },
Please login to merge, or discard this patch.