@@ -32,7 +32,7 @@ |
||
| 32 | 32 | [ |
| 33 | 33 | 'required' => true, |
| 34 | 34 | 'query_builder' => |
| 35 | - function ($er) use ($chart) { |
|
| 35 | + function($er) use ($chart) { |
|
| 36 | 36 | $qb = $er->createQueryBuilder('l'); |
| 37 | 37 | $qb->where('l.chart = :chart'); |
| 38 | 38 | $qb->setParameter('chart', $chart); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | $stream = $this->appStorage->readStream($path); |
| 49 | - return new StreamedResponse(function () use ($stream) { |
|
| 49 | + return new StreamedResponse(function() use ($stream) { |
|
| 50 | 50 | fpassthru($stream); |
| 51 | 51 | exit(); |
| 52 | 52 | }, 200, ['Content-Type' => $this->getMimeType($path)]); |
@@ -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 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @param Request $request |
| 53 | 53 | * @return RedirectResponse|Response |
| 54 | 54 | */ |
| 55 | - public function addLibChartAction($id, Request $request): RedirectResponse|Response |
|
| 55 | + public function addLibChartAction($id, Request $request): RedirectResponse | Response |
|
| 56 | 56 | { |
| 57 | 57 | /** @var Group $group */ |
| 58 | 58 | $group = $this->admin->getSubject(); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * @param Request $request |
| 106 | 106 | * @return RedirectResponse|Response |
| 107 | 107 | */ |
| 108 | - public function setVideoProofOnlyAction($id, Request $request): RedirectResponse|Response |
|
| 108 | + public function setVideoProofOnlyAction($id, Request $request): RedirectResponse | Response |
|
| 109 | 109 | { |
| 110 | 110 | /** @var Group $group */ |
| 111 | 111 | $group = $this->admin->getSubject(); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | { |
| 26 | 26 | $today = (new \DateTime())->format('Y-m-d'); |
| 27 | 27 | |
| 28 | - return $this->cache->get("game_of_day_{$today}", function (ItemInterface $item) { |
|
| 28 | + return $this->cache->get("game_of_day_{$today}", function(ItemInterface $item) { |
|
| 29 | 29 | // Cache expire à minuit (début du jour suivant) |
| 30 | 30 | $tomorrow = new \DateTime('tomorrow'); |
| 31 | 31 | $item->expiresAt($tomorrow); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | ->where('pr.status = :status') |
| 63 | 63 | ->setParameter('status', ProofRequestStatus::IN_PROGRESS); |
| 64 | 64 | |
| 65 | - $totalRequests = (int)$totalRequestsQuery->getQuery()->getSingleScalarResult(); |
|
| 65 | + $totalRequests = (int) $totalRequestsQuery->getQuery()->getSingleScalarResult(); |
|
| 66 | 66 | |
| 67 | 67 | |
| 68 | 68 | return $this->renderResponse( |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | 'required' => false, |
| 192 | 192 | 'expanded' => false, |
| 193 | 193 | 'query_builder' => |
| 194 | - function ($er) { |
|
| 194 | + function($er) { |
|
| 195 | 195 | $qb = $er->createQueryBuilder('p'); |
| 196 | 196 | $qb->orderBy('p.name', 'ASC'); |
| 197 | 197 | return $qb; |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | 'field_type' => RichTextEditorType::class, |
| 73 | 73 | 'label' => 'rule.form.rules', |
| 74 | 74 | 'required' => false, |
| 75 | - ] |
|
| 75 | + ] |
|
| 76 | 76 | ] |
| 77 | 77 | ]); |
| 78 | 78 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $this->logger->info('No rankings to generate today'); |
| 52 | 52 | } else { |
| 53 | 53 | foreach ($rankingsGenerated as $type => $count) { |
| 54 | - $this->logger->info("Generated {$type} rankings", ['count' => $count]); |
|
| 54 | + $this->logger->info("generated {$type} rankings", ['count' => $count]); |
|
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | } catch (\Exception $e) { |