@@ -64,8 +64,7 @@ |
||
| 64 | 64 | $setting = (array) $data['tournament']; |
| 65 | 65 | if (empty($setting['type']) || $setting['type'] === 'general') { |
| 66 | 66 | $tournament = new Tournament(); |
| 67 | - } |
|
| 68 | - else { |
|
| 67 | + } else { |
|
| 69 | 68 | $tournament = new $setting['type']; |
| 70 | 69 | } |
| 71 | 70 | $root = $tournament; |
@@ -62,8 +62,7 @@ |
||
| 62 | 62 | public function setType(string $type = Constants::ROUND_ROBIN) : Generator { |
| 63 | 63 | if (isset(Constants::GroupTypes[$type])) { |
| 64 | 64 | $this->type = $type; |
| 65 | - } |
|
| 66 | - else { |
|
| 65 | + } else { |
|
| 67 | 66 | throw new Exception('Unknown group type: '.$type); |
| 68 | 67 | } |
| 69 | 68 | return $this; |