@@ -80,13 +80,13 @@  | 
                                                    ||
| 80 | 80 | function cleanFormattedContent(): void  | 
                                                        
| 81 | 81 |  { | 
                                                        
| 82 | 82 |      cleanOneTable('product', [ | 
                                                        
| 83 | - 'description' => fn ($v) => cleanRichText($v),  | 
                                                        |
| 84 | - 'content' => fn ($v) => strip_tags($v),  | 
                                                        |
| 83 | + 'description' => fn($v) => cleanRichText($v),  | 
                                                        |
| 84 | + 'content' => fn($v) => strip_tags($v),  | 
                                                        |
| 85 | 85 | ]);  | 
                                                        
| 86 | 86 | |
| 87 | 87 |      cleanOneTable('news', [ | 
                                                        
| 88 | - 'description' => fn ($v) => strip_tags($v),  | 
                                                        |
| 89 | - 'content' => fn ($v) => cleanRichText($v),  | 
                                                        |
| 88 | + 'description' => fn($v) => strip_tags($v),  | 
                                                        |
| 89 | + 'content' => fn($v) => cleanRichText($v),  | 
                                                        |
| 90 | 90 | ]);  | 
                                                        
| 91 | 91 | }  | 
                                                        
| 92 | 92 | |
@@ -2,7 +2,7 @@  | 
                                                    ||
| 2 | 2 | |
| 3 | 3 | declare(strict_types=1);  | 
                                                        
| 4 | 4 | |
| 5 | - return [  | 
                                                        |
| 5 | + return [  | 
                                                        |
| 6 | 6 | [  | 
                                                        
| 7 | 7 |          'query' => 'mutation { | 
                                                        
| 8 | 8 | requestMembershipEnd  | 
                                                        
@@ -39,7 +39,7 @@  | 
                                                    ||
| 39 | 39 | Helper::throwIfDenied(new Order(), 'create');  | 
                                                        
| 40 | 40 | |
| 41 | 41 | $input = $args['input'];  | 
                                                        
| 42 | - $input['orderLines'] = array_map(fn ($line) => Utility::entityIdToModel($line), $input['orderLines']);  | 
                                                        |
| 42 | + $input['orderLines'] = array_map(fn($line) => Utility::entityIdToModel($line), $input['orderLines']);  | 
                                                        |
| 43 | 43 | $input['country'] = isset($input['country']) ? $input['country']->getEntity() : null;  | 
                                                        
| 44 | 44 | |
| 45 | 45 | /** @var Invoicer $invoicer */  | 
                                                        
@@ -492,6 +492,4 @@  | 
                                                    ||
| 492 | 492 | |
| 493 | 493 | private function placeholders(int $count, string $placeholder): string  | 
                                                        
| 494 | 494 |      { | 
                                                        
| 495 | -        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder)); | 
                                                        |
| 496 | - }  | 
                                                        |
| 497 | -}  | 
                                                        |
| 495 | +        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder | 
                                                        |
| 498 | 496 | \ No newline at end of file  | 
                                                        
@@ -492,6 +492,4 @@  | 
                                                    ||
| 492 | 492 | |
| 493 | 493 | private function placeholders(int $count, string $placeholder): string  | 
                                                        
| 494 | 494 |      { | 
                                                        
| 495 | -        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder)); | 
                                                        |
| 496 | - }  | 
                                                        |
| 497 | -}  | 
                                                        |
| 495 | +        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder | 
                                                        |
| 498 | 496 | \ No newline at end of file  | 
                                                        
@@ -179,7 +179,7 @@ discard block  | 
                                                    ||
| 179 | 179 | }  | 
                                                        
| 180 | 180 | |
| 181 | 181 | // un-escape all fields  | 
                                                        
| 182 | - $line = array_map(fn ($r) => html_entity_decode($r), $line);  | 
                                                        |
| 182 | + $line = array_map(fn($r) => html_entity_decode($r), $line);  | 
                                                        |
| 183 | 183 | |
| 184 | 184 | [  | 
                                                        
| 185 | 185 | $email,  | 
                                                        
@@ -492,6 +492,4 @@ discard block  | 
                                                    ||
| 492 | 492 | |
| 493 | 493 | private function placeholders(int $count, string $placeholder): string  | 
                                                        
| 494 | 494 |      { | 
                                                        
| 495 | -        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder)); | 
                                                        |
| 496 | - }  | 
                                                        |
| 497 | -}  | 
                                                        |
| 495 | +        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder | 
                                                        |
| 498 | 496 | \ No newline at end of file  | 
                                                        
@@ -492,6 +492,4 @@  | 
                                                    ||
| 492 | 492 | |
| 493 | 493 | private function placeholders(int $count, string $placeholder): string  | 
                                                        
| 494 | 494 |      { | 
                                                        
| 495 | -        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder)); | 
                                                        |
| 496 | - }  | 
                                                        |
| 497 | -}  | 
                                                        |
| 495 | +        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder | 
                                                        |
| 498 | 496 | \ No newline at end of file  | 
                                                        
@@ -492,6 +492,4 @@  | 
                                                    ||
| 492 | 492 | |
| 493 | 493 | private function placeholders(int $count, string $placeholder): string  | 
                                                        
| 494 | 494 |      { | 
                                                        
| 495 | -        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder)); | 
                                                        |
| 496 | - }  | 
                                                        |
| 497 | -}  | 
                                                        |
| 495 | +        return implode(',' . PHP_EOL, array_fill(0, $count, $placeholder | 
                                                        |
| 498 | 496 | \ No newline at end of file  | 
                                                        
@@ -40,6 +40,4 @@  | 
                                                    ||
| 40 | 40 | 'digital' => ProductTypeType::DIGITAL,  | 
                                                        
| 41 | 41 | ];  | 
                                                        
| 42 | 42 | |
| 43 | - $connection->executeStatement($sqlUpgrade, $params);  | 
                                                        |
| 44 | - }  | 
                                                        |
| 45 | -}  | 
                                                        |
| 43 | + $connection->executeStatement($sqlUpgrade, $params  | 
                                                        |
| 46 | 44 | \ No newline at end of file  | 
                                                        
@@ -40,6 +40,4 @@  | 
                                                    ||
| 40 | 40 | 'digital' => ProductTypeType::DIGITAL,  | 
                                                        
| 41 | 41 | ];  | 
                                                        
| 42 | 42 | |
| 43 | - $connection->executeStatement($sqlUpgrade, $params);  | 
                                                        |
| 44 | - }  | 
                                                        |
| 45 | -}  | 
                                                        |
| 43 | + $connection->executeStatement($sqlUpgrade, $params  | 
                                                        |
| 46 | 44 | \ No newline at end of file  | 
                                                        
@@ -40,6 +40,4 @@  | 
                                                    ||
| 40 | 40 | 'digital' => ProductTypeType::DIGITAL,  | 
                                                        
| 41 | 41 | ];  | 
                                                        
| 42 | 42 | |
| 43 | - $connection->executeStatement($sqlUpgrade, $params);  | 
                                                        |
| 44 | - }  | 
                                                        |
| 45 | -}  | 
                                                        |
| 43 | + $connection->executeStatement($sqlUpgrade, $params  | 
                                                        |
| 46 | 44 | \ No newline at end of file  | 
                                                        
@@ -40,6 +40,4 @@  | 
                                                    ||
| 40 | 40 | 'digital' => ProductTypeType::DIGITAL,  | 
                                                        
| 41 | 41 | ];  | 
                                                        
| 42 | 42 | |
| 43 | - $connection->executeStatement($sqlUpgrade, $params);  | 
                                                        |
| 44 | - }  | 
                                                        |
| 45 | -}  | 
                                                        |
| 43 | + $connection->executeStatement($sqlUpgrade, $params  | 
                                                        |
| 46 | 44 | \ No newline at end of file  | 
                                                        
@@ -40,6 +40,4 @@  | 
                                                    ||
| 40 | 40 | 'digital' => ProductTypeType::DIGITAL,  | 
                                                        
| 41 | 41 | ];  | 
                                                        
| 42 | 42 | |
| 43 | - $connection->executeStatement($sqlUpgrade, $params);  | 
                                                        |
| 44 | - }  | 
                                                        |
| 45 | -}  | 
                                                        |
| 43 | + $connection->executeStatement($sqlUpgrade, $params  | 
                                                        |
| 46 | 44 | \ No newline at end of file  | 
                                                        
@@ -117,7 +117,7 @@  | 
                                                    ||
| 117 | 117 | |
| 118 | 118 | private function assertExactlyOneNotNull(...$args): void  | 
                                                        
| 119 | 119 |      { | 
                                                        
| 120 | - $onlyNotNull = array_filter($args, fn ($val) => $val !== null);  | 
                                                        |
| 120 | + $onlyNotNull = array_filter($args, fn($val) => $val !== null);  | 
                                                        |
| 121 | 121 | |
| 122 | 122 |          if (count($onlyNotNull) !== 1) { | 
                                                        
| 123 | 123 |              throw new Exception('Must have a product, or a subscription, or a pricePerUnit. And not a mixed of those.'); | 
                                                        
@@ -159,7 +159,7 @@ discard block  | 
                                                    ||
| 159 | 159 | $orderRepository = $this->entityManager->getRepository(Order::class);  | 
                                                        
| 160 | 160 | |
| 161 | 161 | /** @var null|Order $order */  | 
                                                        
| 162 | - $order = $orderRepository->getAclFilter()->runWithoutAcl(fn () => $orderRepository->findOneById($orderId));  | 
                                                        |
| 162 | + $order = $orderRepository->getAclFilter()->runWithoutAcl(fn() => $orderRepository->findOneById($orderId));  | 
                                                        |
| 163 | 163 | |
| 164 | 164 |          if (!$order) { | 
                                                        
| 165 | 165 |              throw new Exception('Cannot validate an order without a valid order ID'); | 
                                                        
@@ -230,7 +230,7 @@ discard block  | 
                                                    ||
| 230 | 230 | $user = $order->getOwner();  | 
                                                        
| 231 | 231 | |
| 232 | 232 |          if ($user) { | 
                                                        
| 233 | - $message = $repository->getAclFilter()->runWithoutAcl(fn () => $this->messageQueuer->queueUserValidatedOrder($user, $order));  | 
                                                        |
| 233 | + $message = $repository->getAclFilter()->runWithoutAcl(fn() => $this->messageQueuer->queueUserValidatedOrder($user, $order));  | 
                                                        |
| 234 | 234 | $this->mailer->sendMessageAsync($message);  | 
                                                        
| 235 | 235 | }  | 
                                                        
| 236 | 236 | |
@@ -16,7 +16,7 @@  | 
                                                    ||
| 16 | 16 | 'name' => 'viewer',  | 
                                                        
| 17 | 17 | 'type' => _types()->getOutput(User::class),  | 
                                                        
| 18 | 18 | 'description' => 'Represents currently logged-in user',  | 
                                                        
| 19 | - 'resolve' => fn ($root, array $args): ?User => User::getCurrent(),  | 
                                                        |
| 19 | + 'resolve' => fn($root, array $args): ?User => User::getCurrent(),  | 
                                                        |
| 20 | 20 | ];  | 
                                                        
| 21 | 21 | }  | 
                                                        
| 22 | 22 | }  | 
                                                        
@@ -27,7 +27,7 @@  | 
                                                    ||
| 27 | 27 | $repository = _em()->getRepository(User::class);  | 
                                                        
| 28 | 28 | |
| 29 | 29 | /** @var null|User $user */  | 
                                                        
| 30 | - $user = $repository->getAclFilter()->runWithoutAcl(fn () => $repository->findOneByToken($args['token']));  | 
                                                        |
| 30 | + $user = $repository->getAclFilter()->runWithoutAcl(fn() => $repository->findOneByToken($args['token']));  | 
                                                        |
| 31 | 31 | |
| 32 | 32 |                      if (!$user) { | 
                                                        
| 33 | 33 |                          throw new ExceptionWithoutMailLogging("Le lien que vous avez suivi n'est pas valable ou a déjà été utilisé. Veuillez effectuer une nouvelle demande de changement de mot de passe ou création de compte. Une nouvelle demande invalide les précédentes."); |