Passed
Pull Request — master (#2173)
by Tarmo
10:28 queued 01:18
created
src/Utils/JSON.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Utils/JSON.php
5 5
  *
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $options ??= 0;
41 41
         $depth ??= 512;
42 42
 
43
-        return json_encode($input, JSON_THROW_ON_ERROR | $options, $depth);
43
+        return json_encode($input, JSON_THROW_ON_ERROR|$options, $depth);
44 44
     }
45 45
 
46 46
     /**
@@ -63,6 +63,6 @@  discard block
 block discarded – undo
63 63
         $depth ??= 512;
64 64
         $options ??= 0;
65 65
 
66
-        return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR | $options);
66
+        return json_decode($json, $assoc, $depth, JSON_THROW_ON_ERROR|$options);
67 67
     }
68 68
 }
Please login to merge, or discard this patch.
src/Entity/Role.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Entity/Role.php
5 5
  *
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     #[Groups([
56 56
         'Role.userGroups',
57 57
     ])]
58
-    private Collection | ArrayCollection $userGroups;
58
+    private Collection|ArrayCollection $userGroups;
59 59
 
60 60
     public function __construct(
61 61
         #[ORM\Id]
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @return Collection<int, UserGroup>|ArrayCollection<int, UserGroup>
97 97
      */
98
-    public function getUserGroups(): Collection | ArrayCollection
98
+    public function getUserGroups(): Collection|ArrayCollection
99 99
     {
100 100
         return $this->userGroups;
101 101
     }
Please login to merge, or discard this patch.
src/Entity/LogRequest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Entity/LogRequest.php
5 5
  *
@@ -118,24 +118,24 @@  discard block
 block discarded – undo
118 118
         ?Request $request = null,
119 119
         ?Response $response = null,
120 120
         #[ORM\ManyToOne(
121
-            targetEntity: User::class,
122
-            inversedBy: 'logsRequest',
121
+            targetEntity : User::class,
122
+            inversedBy : 'logsRequest',
123 123
         )]
124 124
         #[ORM\JoinColumn(
125
-            name: 'user_id',
126
-            onDelete: 'SET NULL',
125
+            name : 'user_id',
126
+            onDelete : 'SET NULL',
127 127
         )]
128 128
         #[Groups([
129 129
             'LogRequest.user',
130 130
         ])]
131 131
         private ?User $user = null,
132 132
         #[ORM\ManyToOne(
133
-            targetEntity: ApiKey::class,
134
-            inversedBy: 'logsRequest',
133
+            targetEntity : ApiKey::class,
134
+            inversedBy : 'logsRequest',
135 135
         )]
136 136
         #[ORM\JoinColumn(
137
-            name: 'api_key_id',
138
-            onDelete: 'SET NULL',
137
+            name : 'api_key_id',
138
+            onDelete : 'SET NULL',
139 139
         )]
140 140
         #[Groups([
141 141
             'LogRequest.apiKey',
Please login to merge, or discard this patch.
src/Controller/v1/User/DetachUserGroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Controller/v1/User/DetachUserGroupController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/User/UserRolesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Controller/v1/User/UserRolesController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/User/DeleteUserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Controller/v1/User/DeleteUserController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/User/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Controller/v1/User/UserController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/User/AttachUserGroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Controller/v1/User/AttachUserGroupController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/v1/User/UserGroupsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * /src/Controller/v1/User/UserGroupsController.php
5 5
  *
Please login to merge, or discard this patch.