@@ -54,11 +54,11 @@ discard block |
||
| 54 | 54 | return 'Group '.$this->name; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - public function allowSkip(){ |
|
| 57 | + public function allowSkip() { |
|
| 58 | 58 | $this->generator->allowSkip(); |
| 59 | 59 | return $this; |
| 60 | 60 | } |
| 61 | - public function disallowSkip(){ |
|
| 61 | + public function disallowSkip() { |
|
| 62 | 62 | $this->generator->disallowSkip(); |
| 63 | 63 | return $this; |
| 64 | 64 | } |
@@ -194,11 +194,11 @@ discard block |
||
| 194 | 194 | $this->games[] = $g; |
| 195 | 195 | return $g; |
| 196 | 196 | } |
| 197 | - public function addGame(...$games){ |
|
| 197 | + public function addGame(...$games) { |
|
| 198 | 198 | foreach ($games as $key => $game) { |
| 199 | 199 | if (gettype($game) === 'array') { |
| 200 | 200 | unset($games[$key]); |
| 201 | - $games = array_merge($games, array_filter($game, function($a){ return ($a instanceof Game); })); |
|
| 201 | + $games = array_merge($games, array_filter($game, function($a) { return ($a instanceof Game); })); |
|
| 202 | 202 | continue; |
| 203 | 203 | } |
| 204 | 204 | if (!$game instanceof Game) throw new \Exception('Trying to add game which is not instance of Game object.'); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | return $this; |
| 226 | 226 | } |
| 227 | - public function isPlayed(){ |
|
| 227 | + public function isPlayed() { |
|
| 228 | 228 | foreach ($this->games as $game) { |
| 229 | 229 | if (!$game->isPlayed()) return false; |
| 230 | 230 | } |