Passed
Branch master (b4ac3b)
by Tarmo
05:51
created
src/Controller/RoleController.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/RoleController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/DefaultController.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/DefaultController.php
5 5
  *
Please login to merge, or discard this patch.
src/Controller/UserGroupController.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/UserGroupController.php
5 5
  *
Please login to merge, or discard this patch.
src/Security/RolesServiceInterface.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/Security/RolesInterface.php
5 5
  *
Please login to merge, or discard this patch.
src/Security/ApiKeyUserInterface.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/Security/ApiKeyUser.php
5 5
  *
Please login to merge, or discard this patch.
src/Security/ApiKeyUser.php 1 patch
Spacing   +2 added lines, -2 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/Security/ApiKeyUser.php
5 5
  *
@@ -50,7 +50,7 @@  discard block
 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/UserProvider.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/Security/UserProvider.php
5 5
  *
Please login to merge, or discard this patch.
src/Security/RolesService.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/Security/Roles.php
5 5
  *
@@ -121,11 +121,11 @@  discard block
 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/ApiKeyAuthenticator.php 1 patch
Spacing   +2 added lines, -2 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/Security/ApiKeyAuthenticator.php
5 5
  *
@@ -103,7 +103,7 @@  discard block
 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.