Passed
Push — master ( c5a571...411ad7 )
by Tomáš
03:30
created
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 (in_array($type, Constants::GroupTypes, true)) {
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.