Passed
Push — master ( 18d8be...48bd97 )
by Peter
03:08
created
fallback-routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  */
17 17
 $router->group(
18 18
     ['controllerNamespace' => 'AbterPhp\Admin\\Http\\Controllers'],
19
-    function (Router $router) {
19
+    function(Router $router) {
20 20
         $router->group(
21 21
             [
22 22
                 'path'       => RoutesConfig::getApiBasePath(),
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                     Api::class,
25 25
                 ],
26 26
             ],
27
-            function (Router $router) {
27
+            function(Router $router) {
28 28
                 /** @see \AbterPhp\Admin\Http\Controllers\Api\Index::notFound() */
29 29
                 $router->any(
30 30
                     '/:anything',
Please login to merge, or discard this patch.
src/Form/Factory/User.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function addJsOnly(): User
94 94
     {
95
-        $content    = sprintf(
95
+        $content = sprintf(
96 96
             '<i class="material-icons">warning</i>&nbsp;%s',
97 97
             $this->translator->translate('admin:jsOnly')
98 98
         );
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
             'is_gravatar_allowed',
270 270
             'admin:userIsGravatarAllowed'
271 271
         );
272
-        $help  = new Help('admin:userIsGravatarAllowedHelp');
272
+        $help = new Help('admin:userIsGravatarAllowedHelp');
273 273
 
274 274
         $this->form[] = new CheckboxGroup($input, $label, $help);
275 275
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
      */
334 334
     protected function createUserGroupSelect(array $options): Select
335 335
     {
336
-        $size       = $this->getMultiSelectSize(
336
+        $size = $this->getMultiSelectSize(
337 337
             count($options),
338 338
             static::MULTISELECT_MIN_SIZE,
339 339
             static::MULTISELECT_MAX_SIZE
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     protected function createUserLanguageSelect(array $options): Select
412 412
     {
413
-        $size       = $this->getMultiSelectSize(
413
+        $size = $this->getMultiSelectSize(
414 414
             count($options),
415 415
             static::MULTISELECT_MIN_SIZE,
416 416
             static::MULTISELECT_MAX_SIZE
Please login to merge, or discard this patch.
src/Service/Execute/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $eventDispatcher
45 45
         );
46 46
 
47
-        $this->crypto                  = $crypto;
47
+        $this->crypto = $crypto;
48 48
     }
49 49
 
50 50
     /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             '',
76 76
             ''
77 77
         );
78
-        $entity       = new Entity(
78
+        $entity = new Entity(
79 79
             $entityId,
80 80
             '',
81 81
             '',
Please login to merge, or discard this patch.
tests/Databases/Queries/AdminResourceAuthLoaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 'v1' => $adminResourceIdentifier,
34 34
             ],
35 35
         ];
36
-        $statement0   = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValues);
36
+        $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValues);
37 37
 
38 38
         $this->readConnectionMock
39 39
             ->expects($this->once())
Please login to merge, or discard this patch.
tests/Http/Middleware/LastGridPageTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $responseStub = new Response();
34 34
         $responseStub->setStatusCode(rand(400, 600));
35 35
 
36
-        $next = function () use ($responseStub) {
36
+        $next = function() use ($responseStub) {
37 37
             return $responseStub;
38 38
         };
39 39
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $requestStub  = new Request([], [], [], [], [], [], null);
51 51
         $responseStub = new Response();
52 52
 
53
-        $next = function () use ($responseStub) {
53
+        $next = function() use ($responseStub) {
54 54
             return $responseStub;
55 55
         };
56 56
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $requestStub  = new Request([], [], [], [], [], [], null);
68 68
         $responseStub = new Response();
69 69
 
70
-        $next = function () use ($responseStub) {
70
+        $next = function() use ($responseStub) {
71 71
             return $responseStub;
72 72
         };
73 73
 
Please login to merge, or discard this patch.
tests/Http/Middleware/AuthenticationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $requestStub  = new Request([], [], [], [], [], [], null);
48 48
         $responseStub = new Response();
49 49
 
50
-        $next = function () use ($responseStub) {
50
+        $next = function() use ($responseStub) {
51 51
             return $responseStub;
52 52
         };
53 53
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $requestStub  = new Request([], [], [], [], [], [], null);
67 67
         $responseStub = new Response();
68 68
 
69
-        $next = function () use ($responseStub) {
69
+        $next = function() use ($responseStub) {
70 70
             return $responseStub;
71 71
         };
72 72
 
Please login to merge, or discard this patch.
tests/Http/Middleware/CheckCsrfTokenTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         $requestStub->setPath('/foo/bar');
49 49
 
50
-        $next = function () use ($responseStub) {
50
+        $next = function() use ($responseStub) {
51 51
             return $responseStub;
52 52
         };
53 53
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $requestStub->setPath('/bar');
71 71
 
72
-        $next = function () use ($responseStub) {
72
+        $next = function() use ($responseStub) {
73 73
             return $responseStub;
74 74
         };
75 75
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         $requestStub->setPath('/bar');
92 92
 
93
-        $next = function () use ($responseStub) {
93
+        $next = function() use ($responseStub) {
94 94
             return $responseStub;
95 95
         };
96 96
 
Please login to merge, or discard this patch.
tests/Http/Middleware/SecurityTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $requestStub  = new Request([], [], [], [], [], [], null);
40 40
         $responseStub = new Response();
41 41
 
42
-        $next = function () use ($responseStub) {
42
+        $next = function() use ($responseStub) {
43 43
             return $responseStub;
44 44
         };
45 45
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $responseStub = new Response();
62 62
 
63 63
 
64
-        $next = function () use ($responseStub) {
64
+        $next = function() use ($responseStub) {
65 65
             return $responseStub;
66 66
         };
67 67
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $requestStub  = new Request([], [], [], [], [], $env, null);
83 83
         $responseStub = new Response();
84 84
 
85
-        $next = function () use ($responseStub) {
85
+        $next = function() use ($responseStub) {
86 86
             return $responseStub;
87 87
         };
88 88
 
@@ -128,14 +128,14 @@  discard block
 block discarded – undo
128 128
 
129 129
         $this->cacheBridgeMock->expects($this->once())->method('has')->willReturn(false);
130 130
 
131
-        $env          = [
131
+        $env = [
132 132
             Env::ENV_NAME                    => Environment::PRODUCTION,
133 133
             Env::OAUTH2_PRIVATE_KEY_PASSWORD => $oauth2PrivateKeyPassword,
134 134
         ];
135 135
         $requestStub  = new Request([], [], [], [], [], $env, null);
136 136
         $responseStub = new Response();
137 137
 
138
-        $next = function () use ($responseStub) {
138
+        $next = function() use ($responseStub) {
139 139
             return $responseStub;
140 140
         };
141 141
 
@@ -156,14 +156,14 @@  discard block
 block discarded – undo
156 156
         $this->cacheBridgeMock->expects($this->any())->method('has')->willReturn(false);
157 157
         $this->cacheBridgeMock->expects($this->once())->method('set')->willReturn(true);
158 158
 
159
-        $env          = [
159
+        $env = [
160 160
             Env::ENV_NAME                    => Environment::PRODUCTION,
161 161
             Env::OAUTH2_PRIVATE_KEY_PASSWORD => $oauth2PrivateKeyPassword,
162 162
         ];
163 163
         $requestStub  = new Request([], [], [], [], [], $env, null);
164 164
         $responseStub = new Response();
165 165
 
166
-        $next = function () use ($responseStub) {
166
+        $next = function() use ($responseStub) {
167 167
             return $responseStub;
168 168
         };
169 169
 
Please login to merge, or discard this patch.
tests/Http/Middleware/ApiTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $requestStub  = new Request([], [], [], [], [], [], null);
75 75
         $responseStub = new Response();
76 76
 
77
-        $next = function () use ($responseStub) {
77
+        $next = function() use ($responseStub) {
78 78
             return $responseStub;
79 79
         };
80 80
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $requestStub  = new Request([], [], [], [], [], [], null);
98 98
         $responseStub = new Response();
99 99
 
100
-        $next = function () use ($responseStub) {
100
+        $next = function() use ($responseStub) {
101 101
             return $responseStub;
102 102
         };
103 103
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         $requestStub  = new Request([], [], [], [], [], [], null);
132 132
         $responseStub = new Response();
133 133
 
134
-        $next = function () use ($responseStub) {
134
+        $next = function() use ($responseStub) {
135 135
             return $responseStub;
136 136
         };
137 137
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $requestStub  = new Request([], [], [], [], [], [], null);
172 172
         $responseStub = new Response();
173 173
 
174
-        $next = function () use ($responseStub) {
174
+        $next = function() use ($responseStub) {
175 175
             return $responseStub;
176 176
         };
177 177
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         $requestStub  = new Request([], [], [], [], [], [], null);
213 213
         $responseStub = new Response();
214 214
 
215
-        $next = function () use ($responseStub) {
215
+        $next = function() use ($responseStub) {
216 216
             return $responseStub;
217 217
         };
218 218
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $requestStub  = new Request([], [], [], [], [], [], null);
246 246
         $responseStub = new Response();
247 247
 
248
-        $next = function () use ($responseStub) {
248
+        $next = function() use ($responseStub) {
249 249
             return $responseStub;
250 250
         };
251 251
 
Please login to merge, or discard this patch.