Completed
Pull Request — master (#1)
by Guillermo
04:23
created
src/PlayersCollection.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,9 @@  discard block
 block discarded – undo
131 131
      */
132 132
     private function shuffleAssoc($list)
133 133
     {
134
-        if (!is_array($list)) return $list;
134
+        if (!is_array($list)) {
135
+            return $list;
136
+        }
135 137
 
136 138
         $keys = $this->forceShuffle(array_keys($list));
137 139
         $random = [];
@@ -148,7 +150,9 @@  discard block
 block discarded – undo
148 150
      */
149 151
     private function forceShuffle($list)
150 152
     {
151
-        if (!is_array($list) || count($list) < 2) return $list;
153
+        if (!is_array($list) || count($list) < 2) {
154
+            return $list;
155
+        }
152 156
 
153 157
         $shuffleList = $list;
154 158
         while ($shuffleList == $list) {
Please login to merge, or discard this patch.