@@ -177,7 +177,9 @@ discard block |
||
177 | 177 | */ |
178 | 178 | private function shuffleAssoc(array $list) |
179 | 179 | { |
180 | - if (!is_array($list)) return $list; |
|
180 | + if (!is_array($list)) { |
|
181 | + return $list; |
|
182 | + } |
|
181 | 183 | |
182 | 184 | $keys = $this->forceShuffle(array_keys($list)); |
183 | 185 | $random = []; |
@@ -194,7 +196,9 @@ discard block |
||
194 | 196 | */ |
195 | 197 | private function forceShuffle(array $list) |
196 | 198 | { |
197 | - if (!is_array($list) || count($list) < 2) return $list; |
|
199 | + if (!is_array($list) || count($list) < 2) { |
|
200 | + return $list; |
|
201 | + } |
|
198 | 202 | |
199 | 203 | $shuffleList = $list; |
200 | 204 | while ($shuffleList == $list) { |