@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function sortUserByScore(array $usersScores): array |
| 18 | 18 | { |
| 19 | - usort($usersScores, function ($a, $b) { |
|
| 19 | + usort($usersScores, function($a, $b) { |
|
| 20 | 20 | return ($a->getScoreSumme() <=> $b->getScoreSumme()) * -1; |
| 21 | 21 | }); |
| 22 | 22 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | Config::NO_WIN_TEAM => true, |
| 95 | 95 | ]; |
| 96 | 96 | if (!isset($allowedPoints[$point])) { |
| 97 | - throw new \RuntimeException('Point: ' . $point . ' is not allowed'); |
|
| 97 | + throw new \RuntimeException('Point: '.$point.' is not allowed'); |
|
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | \ No newline at end of file |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | $this->checkCollection(); |
| 32 | 32 | |
| 33 | - usort($this->collections, function ($a, $b) { |
|
| 33 | + usort($this->collections, function($a, $b) { |
|
| 34 | 34 | return $a->getScore() <=> $b->getScore(); |
| 35 | 35 | }); |
| 36 | 36 | $this->collections = array_reverse($this->collections); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | foreach ($this->collections as $collection) { |
| 52 | 52 | if (!$collection instanceof ScoreInterface) { |
| 53 | - throw new \RuntimeException('Collection: ' . get_class($collection) . 'is not instanceof ' . ScoreInterface::class); |
|
| 53 | + throw new \RuntimeException('Collection: '.get_class($collection).'is not instanceof '.ScoreInterface::class); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |