Passed
Branch master (7949ab)
by Tomáš
02:07
created
src/TournamentGenerator/Category.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 		$this->setId(isset($id) ? $id : uniqid());
18 18
 	}
19 19
 
20
-	public function addRound(Round ...$rounds){
20
+	public function addRound(Round ...$rounds) {
21 21
 		foreach ($rounds as $round) {
22 22
 			$this->rounds[] = $round;
23 23
 		}
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		$this->rounds[] = $r->setSkip($this->allowSkip);
29 29
 		return $r;
30 30
 	}
31
-	public function getRounds(){
31
+	public function getRounds() {
32 32
 		return $this->rounds;
33 33
 	}
34 34
 	public function getGroups() {
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 		return $groups;
40 40
 	}
41 41
 
42
-	public function allowSkip(){
42
+	public function allowSkip() {
43 43
 		$this->allowSkip = true;
44 44
 		return $this;
45 45
 	}
46
-	public function disallowSkip(){
46
+	public function disallowSkip() {
47 47
 		$this->allowSkip = false;
48 48
 		return $this;
49 49
 	}
Please login to merge, or discard this patch.
src/TournamentGenerator/Tournament.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 	private $allowSkip = false;
22 22
 
23
-	function __construct(string $name = ''){
23
+	function __construct(string $name = '') {
24 24
 		$this->name = $name;
25 25
 	}
26 26
 	public function __toString() {
@@ -63,16 +63,16 @@  discard block
 block discarded – undo
63 63
 	public function getCategoryWait() {
64 64
 		return $this->expectedCategoryWait;
65 65
 	}
66
-	public function getTournamentTime(){
66
+	public function getTournamentTime() {
67 67
 		$games = count($this->getGames());
68 68
 		return $games*$this->expectedPlay+($games-1)*$this->expectedGameWait+(count($this->getRounds())-1)*$this->expectedRoundWait+(count($this->getCategories())-1)*$this->expectedCategoryWait;
69 69
 	}
70 70
 
71
-	public function allowSkip(){
71
+	public function allowSkip() {
72 72
 		$this->allowSkip = true;
73 73
 		return $this;
74 74
 	}
75
-	public function disallowSkip(){
75
+	public function disallowSkip() {
76 76
 		$this->allowSkip = false;
77 77
 		return $this;
78 78
 	}
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		return $this->allowSkip;
85 85
 	}
86 86
 
87
-	public function addCategory(Category ...$categories){
87
+	public function addCategory(Category ...$categories) {
88 88
 		foreach ($categories as $category) {
89 89
 			$this->categories[] = $category;
90 90
 		}
Please login to merge, or discard this patch.