Passed
Push — master ( 9dbb46...184cb2 )
by Sam
18:44
created
server/Application/Api/Field/Mutation/UpdatePassword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
server/Application/Api/Field/Mutation/Register.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
server/Application/Api/Schema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
server/Application/Repository/UserRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
server/Application/Repository/FileRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/ApplicationTest/Api/Input/Sorting/OwnerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
tests/ApplicationTest/Api/Input/Sorting/IllustrationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
server/Application/Api/Input/OrderLineInputType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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
                 ],
Please login to merge, or discard this patch.
server/Application/Api/Input/OrderInputType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
                 ],
Please login to merge, or discard this patch.