Passed
Push — master ( b4ac3b...3cca7b )
by Tarmo
02:47
created
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.
src/Resource/UserResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
          *
80 80
          * @return bool
81 81
          */
82
-        $filter = function (Entity $user) use ($userGroup): bool {
82
+        $filter = function(Entity $user) use ($userGroup): bool {
83 83
             $user->setRolesService($this->roles);
84 84
 
85 85
             return \in_array($userGroup->getRole()->getId(), $user->getRoles(), true);
Please login to merge, or discard this patch.
src/Doctrine/DBAL/Types/EnumType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
      */
39 39
     public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string
40 40
     {
41
-        $iterator = function (string $value): string {
41
+        $iterator = function(string $value): string {
42 42
             return "'" . $value . "'";
43 43
         };
44 44
 
45
-        return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)). ')';
45
+        return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)) . ')';
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/Utils/Tests/Auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
         }
132 132
 
133 133
         if ($response->getStatusCode() !== 200) {
134
-            throw new \UnexpectedValueException('Invalid status code: '. $response->getStatusCode());
134
+            throw new \UnexpectedValueException('Invalid status code: ' . $response->getStatusCode());
135 135
         }
136 136
 
137 137
         return JSON::decode($response->getContent())->token;
Please login to merge, or discard this patch.
src/Command/HelperConfigure.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
          *
35 35
          * @return InputOption
36 36
          */
37
-        $iterator = function (array $input): InputOption {
37
+        $iterator = function(array $input): InputOption {
38 38
             return new InputOption(
39 39
                 $input['name'],
40 40
                 $input['shortcut'] ?? null,
Please login to merge, or discard this patch.