|
@@ -216,7 +216,7 @@ discard block |
|
|
block discarded – undo |
|
216
|
216
|
* |
|
217
|
217
|
* @return self |
|
218
|
218
|
*/ |
|
219
|
|
- public function addWin(string $groupId = ''){ |
|
|
219
|
+ public function addWin(string $groupId = '') { |
|
220
|
220
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
221
|
221
|
$this->groupResults[$groupId]['points'] += $this->groupResults[$groupId]['group']->getWinPoints(); |
|
222
|
222
|
$this->sumPoints += $this->groupResults[$groupId]['group']->getWinPoints(); |
|
@@ -234,7 +234,7 @@ discard block |
|
|
block discarded – undo |
|
234
|
234
|
* |
|
235
|
235
|
* @return self |
|
236
|
236
|
*/ |
|
237
|
|
- public function removeWin(string $groupId = ''){ |
|
|
237
|
+ public function removeWin(string $groupId = '') { |
|
238
|
238
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
239
|
239
|
$this->groupResults[$groupId]['points'] -= $this->groupResults[$groupId]['group']->getWinPoints(); |
|
240
|
240
|
$this->sumPoints -= $this->groupResults[$groupId]['group']->getWinPoints(); |
|
@@ -253,7 +253,7 @@ discard block |
|
|
block discarded – undo |
|
253
|
253
|
* |
|
254
|
254
|
* @return self |
|
255
|
255
|
*/ |
|
256
|
|
- public function addDraw(string $groupId = ''){ |
|
|
256
|
+ public function addDraw(string $groupId = '') { |
|
257
|
257
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
258
|
258
|
$this->groupResults[$groupId]['points'] += $this->groupResults[$groupId]['group']->getDrawPoints(); |
|
259
|
259
|
$this->sumPoints += $this->groupResults[$groupId]['group']->getDrawPoints(); |
|
@@ -271,7 +271,7 @@ discard block |
|
|
block discarded – undo |
|
271
|
271
|
* |
|
272
|
272
|
* @return self |
|
273
|
273
|
*/ |
|
274
|
|
- public function removeDraw(string $groupId = ''){ |
|
|
274
|
+ public function removeDraw(string $groupId = '') { |
|
275
|
275
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
276
|
276
|
$this->groupResults[$groupId]['points'] -= $this->groupResults[$groupId]['group']->getDrawPoints(); |
|
277
|
277
|
$this->sumPoints -= $this->groupResults[$groupId]['group']->getDrawPoints(); |
|
@@ -290,7 +290,7 @@ discard block |
|
|
block discarded – undo |
|
290
|
290
|
* |
|
291
|
291
|
* @return self |
|
292
|
292
|
*/ |
|
293
|
|
- public function addLoss(string $groupId = ''){ |
|
|
293
|
+ public function addLoss(string $groupId = '') { |
|
294
|
294
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
295
|
295
|
$this->groupResults[$groupId]['points'] += $this->groupResults[$groupId]['group']->getLostPoints(); |
|
296
|
296
|
$this->sumPoints += $this->groupResults[$groupId]['group']->getLostPoints(); |
|
@@ -308,7 +308,7 @@ discard block |
|
|
block discarded – undo |
|
308
|
308
|
* |
|
309
|
309
|
* @return self |
|
310
|
310
|
*/ |
|
311
|
|
- public function removeLoss(string $groupId = ''){ |
|
|
311
|
+ public function removeLoss(string $groupId = '') { |
|
312
|
312
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
313
|
313
|
$this->groupResults[$groupId]['points'] -= $this->groupResults[$groupId]['group']->getLostPoints(); |
|
314
|
314
|
$this->sumPoints -= $this->groupResults[$groupId]['group']->getLostPoints(); |
|
@@ -327,7 +327,7 @@ discard block |
|
|
block discarded – undo |
|
327
|
327
|
* |
|
328
|
328
|
* @return self |
|
329
|
329
|
*/ |
|
330
|
|
- public function addSecond(string $groupId = ''){ |
|
|
330
|
+ public function addSecond(string $groupId = '') { |
|
331
|
331
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
332
|
332
|
$this->groupResults[$groupId]['points'] += $this->groupResults[$groupId]['group']->getSecondPoints(); |
|
333
|
333
|
$this->sumPoints += $this->groupResults[$groupId]['group']->getSecondPoints(); |
|
@@ -345,7 +345,7 @@ discard block |
|
|
block discarded – undo |
|
345
|
345
|
* |
|
346
|
346
|
* @return self |
|
347
|
347
|
*/ |
|
348
|
|
- public function removeSecond(string $groupId = ''){ |
|
|
348
|
+ public function removeSecond(string $groupId = '') { |
|
349
|
349
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
350
|
350
|
$this->groupResults[$groupId]['points'] -= $this->groupResults[$groupId]['group']->getSecondPoints(); |
|
351
|
351
|
$this->sumPoints -= $this->groupResults[$groupId]['group']->getSecondPoints(); |
|
@@ -364,7 +364,7 @@ discard block |
|
|
block discarded – undo |
|
364
|
364
|
* |
|
365
|
365
|
* @return self |
|
366
|
366
|
*/ |
|
367
|
|
- public function addThird(string $groupId = ''){ |
|
|
367
|
+ public function addThird(string $groupId = '') { |
|
368
|
368
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
369
|
369
|
$this->groupResults[$groupId]['points'] += $this->groupResults[$groupId]['group']->getThirdPoints(); |
|
370
|
370
|
$this->sumPoints += $this->groupResults[$groupId]['group']->getThirdPoints(); |
|
@@ -382,7 +382,7 @@ discard block |
|
|
block discarded – undo |
|
382
|
382
|
* |
|
383
|
383
|
* @return self |
|
384
|
384
|
*/ |
|
385
|
|
- public function removeThird(string $groupId = ''){ |
|
|
385
|
+ public function removeThird(string $groupId = '') { |
|
386
|
386
|
if (!isset($this->groupResults[$groupId])) throw new \Exception('Group '.$groupId.' is not set for this team ('.$this->name.')'); |
|
387
|
387
|
$this->groupResults[$groupId]['points'] -= $this->groupResults[$groupId]['group']->getThirdPoints(); |
|
388
|
388
|
$this->sumPoints -= $this->groupResults[$groupId]['group']->getThirdPoints(); |