@@ -16,11 +16,11 @@ |
||
| 16 | 16 | $this->playerRankingProvider = $playerRankingProvider; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @param Request $request |
|
| 21 | - * @return array |
|
| 22 | - * @throws ORMException |
|
| 23 | - */ |
|
| 19 | + /** |
|
| 20 | + * @param Request $request |
|
| 21 | + * @return array |
|
| 22 | + * @throws ORMException |
|
| 23 | + */ |
|
| 24 | 24 | public function __invoke(Request $request): array |
| 25 | 25 | { |
| 26 | 26 | return $this->playerRankingProvider->getRankingCup( |
@@ -33,12 +33,12 @@ |
||
| 33 | 33 | return $playerGames; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * Return data from player with game and platforms |
|
| 38 | - * |
|
| 39 | - * @param $player |
|
| 40 | - * @return array |
|
| 41 | - */ |
|
| 36 | + /** |
|
| 37 | + * Return data from player with game and platforms |
|
| 38 | + * |
|
| 39 | + * @param $player |
|
| 40 | + * @return array |
|
| 41 | + */ |
|
| 42 | 42 | private function getPlayerGameStats($player): array |
| 43 | 43 | { |
| 44 | 44 | $qb = $this->em->createQueryBuilder() |
@@ -145,6 +145,6 @@ |
||
| 145 | 145 | $result = $tmpValue . $suffixe . $result; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | - return ($negative ? '-' : '') . $result; |
|
| 148 | + return ($negative ? '-' : '') . $result; |
|
| 149 | 149 | } |
| 150 | 150 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $teamStats = $teamRepository->getStats(); |
| 39 | 39 | |
| 40 | 40 | return array( |
| 41 | - 'nbPlayer' => (int)$playerStats[1], |
|
| 41 | + 'nbPlayer' => (int) $playerStats[1], |
|
| 42 | 42 | 'nbChart' => (int) $playerStats[2], |
| 43 | 43 | 'nbChartProven' => (int) $playerStats[3], |
| 44 | 44 | 'nbGame' => (int) $gameStats[1], |
@@ -285,7 +285,7 @@ |
||
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | |
| 288 | - public function getStream($type): bool|string |
|
| 288 | + public function getStream($type): bool | string |
|
| 289 | 289 | { |
| 290 | 290 | $method = $this->getGererateMethod($type); |
| 291 | 291 | ob_start(); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | EntityType::class, |
| 21 | 21 | [ |
| 22 | 22 | 'class' => ChartType::class, |
| 23 | - 'query_builder' => function (EntityRepository $er) { |
|
| 23 | + 'query_builder' => function(EntityRepository $er) { |
|
| 24 | 24 | return $er->createQueryBuilder('ct') |
| 25 | 25 | ->orderBy('ct.name', 'ASC'); |
| 26 | 26 | }, |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $stream = $this->appStorage->readStream($path); |
| 39 | - return new StreamedResponse(function () use ($stream) { |
|
| 39 | + return new StreamedResponse(function() use ($stream) { |
|
| 40 | 40 | fpassthru($stream); |
| 41 | 41 | }, 200, ['Content-Type' => 'image/gif']); |
| 42 | 42 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $stream = $this->appStorage->readStream($path); |
| 40 | - return new StreamedResponse(function () use ($stream) { |
|
| 40 | + return new StreamedResponse(function() use ($stream) { |
|
| 41 | 41 | fpassthru($stream); |
| 42 | 42 | }, 200, ['Content-Type' => 'image/png']); |
| 43 | 43 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $stream = $this->appStorage->readStream($path); |
| 40 | - return new StreamedResponse(function () use ($stream) { |
|
| 40 | + return new StreamedResponse(function() use ($stream) { |
|
| 41 | 41 | fpassthru($stream); |
| 42 | 42 | }, 200, ['Content-Type' => 'image/png']); |
| 43 | 43 | } |