Completed
Push — master ( bda484...b906b9 )
by Tomáš
01:30
created
src/classes/class_group.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.