Passed
Push — master ( b4ac3b...3cca7b )
by Tarmo
02:47
created
src/Entity/ApiKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
          *
237 237
          * @return string
238 238
          */
239
-        $iterator = function (UserGroup $userGroup) {
239
+        $iterator = function(UserGroup $userGroup) {
240 240
             return $userGroup->getRole()->getId();
241 241
         };
242 242
 
Please login to merge, or discard this patch.
src/Entity/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@
 block discarded – undo
395 395
          *
396 396
          * @return  string
397 397
          */
398
-        $iterator = function (UserGroup $userGroup) {
398
+        $iterator = function(UserGroup $userGroup) {
399 399
             return $userGroup->getRole()->getId();
400 400
         };
401 401
 
Please login to merge, or discard this patch.
src/Entity/LogRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1030,7 +1030,7 @@
 block discarded – undo
1030 1030
      */
1031 1031
     private function cleanContent(string $content): string
1032 1032
     {
1033
-        $iterator = function ($search) use (&$content) {
1033
+        $iterator = function($search) use (&$content) {
1034 1034
             $content = \preg_replace('/(' . $search . '":)\s*"(.*)"/', '$1"*** REPLACED ***"', $content);
1035 1035
         };
1036 1036
 
Please login to merge, or discard this patch.
src/Security/RolesService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,11 +121,11 @@
 block discarded – undo
121 121
 
122 122
         return \array_unique(
123 123
             \array_map(
124
-                function (Role $role) {
124
+                function(Role $role) {
125 125
                     return $role->getRole();
126 126
                 },
127 127
                 $hierarchy->getReachableRoles(\array_map(
128
-                    function (string $role) {
128
+                    function(string $role) {
129 129
                         return new Role($role);
130 130
                     },
131 131
                     $roles
Please login to merge, or discard this patch.
src/Security/ApiKeyUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $roles = [RolesService::ROLE_API];
51 51
 
52 52
         // Iterate API key user groups and attach those roles for API user
53
-        $this->apiKey->getUserGroups()->map(function (UserGroup $userGroup) use (&$roles) {
53
+        $this->apiKey->getUserGroups()->map(function(UserGroup $userGroup) use (&$roles) {
54 54
             $roles[] = $userGroup->getRole()->getId();
55 55
         });
56 56
 
Please login to merge, or discard this patch.
src/Security/ApiKeyAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
          *
104 104
          * @return bool
105 105
          */
106
-        $filter = function (UserProviderInterface $userProvider): bool {
106
+        $filter = function(UserProviderInterface $userProvider): bool {
107 107
             return $userProvider instanceof ApiKeyUserProvider;
108 108
         };
109 109
 
Please login to merge, or discard this patch.
src/DTO/RestDto.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
                 'has' . \ucfirst($property),
66 66
             ];
67 67
 
68
-            $filter = function (string $method) use ($dto): bool {
68
+            $filter = function(string $method) use ($dto): bool {
69 69
                 return \method_exists($dto, $method);
70 70
             };
71 71
 
Please login to merge, or discard this patch.
src/DTO/ApiKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
          *
146 146
          * @return string
147 147
          */
148
-        $iterator = function (UserGroupEntity $userGroup) {
148
+        $iterator = function(UserGroupEntity $userGroup) {
149 149
             return $userGroup->getId();
150 150
         };
151 151
 
Please login to merge, or discard this patch.
src/DTO/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
          *
253 253
          * @return string
254 254
          */
255
-        $iterator = function (UserGroupEntity $group) {
255
+        $iterator = function(UserGroupEntity $group) {
256 256
             return $group->getId();
257 257
         };
258 258
 
Please login to merge, or discard this patch.