@@ -20,7 +20,7 @@ discard block |
||
| 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() { |
@@ -55,16 +55,16 @@ discard block |
||
| 55 | 55 | public function getCategoryWait() { |
| 56 | 56 | return $this->expectedCategoryWait; |
| 57 | 57 | } |
| 58 | - public function getTournamentTime(){ |
|
| 58 | + public function getTournamentTime() { |
|
| 59 | 59 | $games = count($this->getGames()); |
| 60 | 60 | return $games*$this->expectedPlay+$games*$this->expectedGameWait+count($this->getRounds())*$this->expectedRoundWait+count($this->getCategories())*$this->expectedCategoryWait; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - public function allowSkip(){ |
|
| 63 | + public function allowSkip() { |
|
| 64 | 64 | $this->allowSkip = true; |
| 65 | 65 | return $this; |
| 66 | 66 | } |
| 67 | - public function disallowSkip(){ |
|
| 67 | + public function disallowSkip() { |
|
| 68 | 68 | $this->allowSkip = false; |
| 69 | 69 | return $this; |
| 70 | 70 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | return $this->allowSkip; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - public function addCategory(Category ...$categories){ |
|
| 79 | + public function addCategory(Category ...$categories) { |
|
| 80 | 80 | foreach ($categories as $category) { |
| 81 | 81 | if ($category instanceof Category) $this->categories[] = $category; |
| 82 | 82 | else throw new \Exception('Trying to add category which is not an instance of the Category class.'); |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | public function addTeam(...$teams) { |
| 119 | 119 | foreach ($teams as $team) { |
| 120 | - if ($team instanceof Team) { |
|
| 120 | + if ($team instanceof Team) { |
|
| 121 | 121 | $this->teams[] = $team; |
| 122 | 122 | continue; |
| 123 | 123 | } |