Test Failed
Push — master ( 2fbbce...c5a571 )
by Tomáš
02:30
created
src/TournamentGenerator/Import/Importer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/TournamentGenerator/Helpers/Generator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.