@@ -38,7 +38,7 @@ |
||
38 | 38 | $repository = _em()->getRepository(User::class); |
39 | 39 | |
40 | 40 | /** @var null|User $user */ |
41 | - $user = $repository->getAclFilter()->runWithoutAcl(fn () => $repository->findOneByToken($args['token'])); |
|
41 | + $user = $repository->getAclFilter()->runWithoutAcl(fn() => $repository->findOneByToken($args['token'])); |
|
42 | 42 | |
43 | 43 | if (!$user || !$user->isTokenValid()) { |
44 | 44 | _log()->info(LogRepository::UPDATE_PASSWORD_FAILED); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $repository = _em()->getRepository(User::class); |
49 | 49 | |
50 | 50 | /** @var null|User $user */ |
51 | - $user = $repository->getAclFilter()->runWithoutAcl(fn () => $repository->findOneByEmail($args['email'])); |
|
51 | + $user = $repository->getAclFilter()->runWithoutAcl(fn() => $repository->findOneByEmail($args['email'])); |
|
52 | 52 | |
53 | 53 | $existingUser = (bool) $user; |
54 | 54 | if (!$existingUser) { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $config = [ |
15 | 15 | 'query' => _types()->get(QueryType::class), |
16 | 16 | 'mutation' => _types()->get(MutationType::class), |
17 | - 'typeLoader' => fn ($name) => _types()->get($name), |
|
17 | + 'typeLoader' => fn($name) => _types()->get($name), |
|
18 | 18 | ]; |
19 | 19 | |
20 | 20 | parent::__construct($config); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function getOneById(int $id): ?User |
70 | 70 | { |
71 | - $user = $this->getAclFilter()->runWithoutAcl(fn () => $this->findOneById($id)); |
|
71 | + $user = $this->getAclFilter()->runWithoutAcl(fn() => $this->findOneById($id)); |
|
72 | 72 | |
73 | 73 | return $user; |
74 | 74 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function getOneByEmail(?string $email): ?User |
82 | 82 | { |
83 | - $user = $this->getAclFilter()->runWithoutAcl(fn () => $this->findOneByEmail($email)); |
|
83 | + $user = $this->getAclFilter()->runWithoutAcl(fn() => $this->findOneByEmail($email)); |
|
84 | 84 | |
85 | 85 | return $user; |
86 | 86 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $connection = $this->getEntityManager()->getConnection(); |
35 | 35 | $subscriptionLastReviewNumber = $user ? $user->getSubscriptionLastReviewNumber() : null; |
36 | 36 | $hasSubscription = $user && ProductTypeType::includesDigital($user->getSubscriptionType()) && $subscriptionLastReviewNumber; |
37 | - $digitalTypes = implode(',', array_map(fn (string $val): string => $connection->quote($val), ProductTypeType::getDigitalTypes())); |
|
37 | + $digitalTypes = implode(',', array_map(fn(string $val): string => $connection->quote($val), ProductTypeType::getDigitalTypes())); |
|
38 | 38 | |
39 | 39 | if ($user && $user->getWebTemporaryAccess()) { |
40 | 40 | // Files for webTemporaryAccess |
@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | public function testSorting(): void |
14 | 14 | { |
15 | - $result = _em()->getRepository(User::class)->getAclFilter()->runWithoutAcl(fn () => $this->getSortedQueryResult(_types(), Message::class, 'owner')); |
|
15 | + $result = _em()->getRepository(User::class)->getAclFilter()->runWithoutAcl(fn() => $this->getSortedQueryResult(_types(), Message::class, 'owner')); |
|
16 | 16 | |
17 | 17 | self::assertSame([ |
18 | 18 | 11002, |
@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | public function testSorting(): void |
14 | 14 | { |
15 | - $result = _em()->getRepository(User::class)->getAclFilter()->runWithoutAcl(fn () => $this->getSortedQueryResult(_types(), Product::class, 'illustration')); |
|
15 | + $result = _em()->getRepository(User::class)->getAclFilter()->runWithoutAcl(fn() => $this->getSortedQueryResult(_types(), Product::class, 'illustration')); |
|
16 | 16 | |
17 | 17 | self::assertSame([ |
18 | 18 | 3000, |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $config = [ |
17 | 17 | 'description' => 'A shopping cart item when making an order. It can be for a product or a subscription, or a donation, but not a mix of those', |
18 | - 'fields' => fn (): array => [ |
|
18 | + 'fields' => fn(): array => [ |
|
19 | 19 | 'quantity' => [ |
20 | 20 | 'type' => self::nonNull(self::int()), |
21 | 21 | ], |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | $config = [ |
16 | 16 | 'description' => 'A shopping cart order.', |
17 | - 'fields' => fn (): array => [ |
|
17 | + 'fields' => fn(): array => [ |
|
18 | 18 | 'paymentMethod' => [ |
19 | 19 | 'type' => self::nonNull(_types()->get('PaymentMethod')), |
20 | 20 | ], |