Passed
Push — master ( 80fed1...32ef61 )
by Peter
09:46
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/UserAuthLoaderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         $username            = 'foo';
26 26
         $userGroupIdentifier = 'bar';
27 27
 
28
-        $sql0          = 'SELECT u.username AS v0, ug.identifier AS v1 FROM users AS u INNER JOIN users_user_groups AS uug ON uug.user_id = u.id AND uug.deleted_at IS NULL INNER JOIN user_groups AS ug ON uug.user_group_id = ug.id AND ug.deleted_at IS NULL WHERE (u.deleted_at IS NULL)'; // phpcs:ignore
28
+        $sql0 = 'SELECT u.username AS v0, ug.identifier AS v1 FROM users AS u INNER JOIN users_user_groups AS uug ON uug.user_id = u.id AND uug.deleted_at IS NULL INNER JOIN user_groups AS ug ON uug.user_group_id = ug.id AND ug.deleted_at IS NULL WHERE (u.deleted_at IS NULL)'; // phpcs:ignore
29 29
         $valuesToBind = [];
30 30
         $returnValues = [
31 31
             [
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 'v1' => $userGroupIdentifier,
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->exactly(1))
Please login to merge, or discard this patch.
tests/Databases/Queries/BlockCacheTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
         $identifiers = ['foo', 'bar'];
26 26
         $cacheTime   = 'baz';
27 27
 
28
-        $sql0          = 'SELECT COUNT(*) AS count FROM blocks LEFT JOIN block_layouts AS layouts ON layouts.id = blocks.layout_id WHERE (blocks.deleted_at IS NULL) AND (blocks.identifier IN (?,?)) AND (blocks.updated_at > ? OR layouts.updated_at > ?)'; // phpcs:ignore
28
+        $sql0 = 'SELECT COUNT(*) AS count FROM blocks LEFT JOIN block_layouts AS layouts ON layouts.id = blocks.layout_id WHERE (blocks.deleted_at IS NULL) AND (blocks.identifier IN (?,?)) AND (blocks.updated_at > ? OR layouts.updated_at > ?)'; // phpcs:ignore
29 29
         $valuesToBind = [
30 30
             [$identifiers[0], \PDO::PARAM_STR],
31 31
             [$identifiers[1], \PDO::PARAM_STR],
32 32
             [$cacheTime, \PDO::PARAM_STR],
33 33
             [$cacheTime, \PDO::PARAM_STR],
34 34
         ];
35
-        $returnValue  = '0';
36
-        $statement0    = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
35
+        $returnValue = '0';
36
+        $statement0 = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
37 37
 
38 38
         $this->readConnectionMock
39 39
             ->expects($this->once())
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
         $identifiers = ['foo', 'bar'];
52 52
         $cacheTime   = 'baz';
53 53
 
54
-        $sql0          = 'SELECT COUNT(*) AS count FROM blocks LEFT JOIN block_layouts AS layouts ON layouts.id = blocks.layout_id WHERE (blocks.deleted_at IS NULL) AND (blocks.identifier IN (?,?)) AND (blocks.updated_at > ? OR layouts.updated_at > ?)'; // phpcs:ignore
54
+        $sql0 = 'SELECT COUNT(*) AS count FROM blocks LEFT JOIN block_layouts AS layouts ON layouts.id = blocks.layout_id WHERE (blocks.deleted_at IS NULL) AND (blocks.identifier IN (?,?)) AND (blocks.updated_at > ? OR layouts.updated_at > ?)'; // phpcs:ignore
55 55
         $valuesToBind = [
56 56
             [$identifiers[0], \PDO::PARAM_STR],
57 57
             [$identifiers[1], \PDO::PARAM_STR],
58 58
             [$cacheTime, \PDO::PARAM_STR],
59 59
             [$cacheTime, \PDO::PARAM_STR],
60 60
         ];
61
-        $returnValue  = '2';
62
-        $statement0    = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
61
+        $returnValue = '2';
62
+        $statement0 = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
63 63
 
64 64
         $this->readConnectionMock
65 65
             ->expects($this->once())
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
         $this->expectException(Database::class);
82 82
         $this->expectExceptionCode($errorInfo[1]);
83 83
 
84
-        $sql0          = 'SELECT COUNT(*) AS count FROM blocks LEFT JOIN block_layouts AS layouts ON layouts.id = blocks.layout_id WHERE (blocks.deleted_at IS NULL) AND (blocks.identifier IN (?,?)) AND (blocks.updated_at > ? OR layouts.updated_at > ?)'; // phpcs:ignore
84
+        $sql0 = 'SELECT COUNT(*) AS count FROM blocks LEFT JOIN block_layouts AS layouts ON layouts.id = blocks.layout_id WHERE (blocks.deleted_at IS NULL) AND (blocks.identifier IN (?,?)) AND (blocks.updated_at > ? OR layouts.updated_at > ?)'; // phpcs:ignore
85 85
         $valuesToBind = [
86 86
             [$identifiers[0], \PDO::PARAM_STR],
87 87
             [$identifiers[1], \PDO::PARAM_STR],
88 88
             [$cacheTime, \PDO::PARAM_STR],
89 89
             [$cacheTime, \PDO::PARAM_STR],
90 90
         ];
91
-        $statement0    = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo);
91
+        $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo);
92 92
 
93 93
         $this->readConnectionMock
94 94
             ->expects($this->once())
Please login to merge, or discard this patch.
tests/Databases/Queries/LoginThrottleTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
         $username        = 'bar';
27 27
         $maxFailureCount = 11;
28 28
 
29
-        $sql0          = 'SELECT COUNT(*) AS count FROM login_attempts AS la WHERE (la.ip_hash = ? OR la.username = ?) AND (la.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
29
+        $sql0 = 'SELECT COUNT(*) AS count FROM login_attempts AS la WHERE (la.ip_hash = ? OR la.username = ?) AND (la.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
30 30
         $valuesToBind = [
31 31
             [$ipHash, \PDO::PARAM_STR],
32 32
             [$username, \PDO::PARAM_STR],
33 33
         ];
34
-        $returnValue  = 2;
35
-        $statement0    = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
34
+        $returnValue = 2;
35
+        $statement0 = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
36 36
 
37 37
         $this->readConnectionMock
38 38
             ->expects($this->once())
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
         $username        = 'bar';
52 52
         $maxFailureCount = 11;
53 53
 
54
-        $sql0          = 'SELECT COUNT(*) AS count FROM login_attempts AS la WHERE (la.ip_hash = ? OR la.username = ?) AND (la.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
54
+        $sql0 = 'SELECT COUNT(*) AS count FROM login_attempts AS la WHERE (la.ip_hash = ? OR la.username = ?) AND (la.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
55 55
         $valuesToBind = [
56 56
             [$ipHash, \PDO::PARAM_STR],
57 57
             [$username, \PDO::PARAM_STR],
58 58
         ];
59
-        $returnValue  = 14;
60
-        $statement0    = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
59
+        $returnValue = 14;
60
+        $statement0 = MockStatementFactory::createReadColumnStatement($this, $valuesToBind, $returnValue);
61 61
 
62 62
         $this->readConnectionMock
63 63
             ->expects($this->exactly(1))
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
         $username        = 'bar';
82 82
         $maxFailureCount = 11;
83 83
 
84
-        $sql0          = 'SELECT COUNT(*) AS count FROM login_attempts AS la WHERE (la.ip_hash = ? OR la.username = ?) AND (la.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
84
+        $sql0 = 'SELECT COUNT(*) AS count FROM login_attempts AS la WHERE (la.ip_hash = ? OR la.username = ?) AND (la.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
85 85
         $valuesToBind = [
86 86
             [$ipHash, \PDO::PARAM_STR],
87 87
             [$username, \PDO::PARAM_STR],
88 88
         ];
89
-        $statement0    = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo);
89
+        $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo);
90 90
 
91 91
         $this->readConnectionMock
92 92
             ->expects($this->exactly(1))
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
         $ipHash   = 'foo';
103 103
         $username = 'bar';
104 104
 
105
-        $sql0          = 'DELETE FROM login_attempts WHERE (login_attempts.ip_hash = ?) AND (login_attempts.username = ?) AND (login_attempts.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
105
+        $sql0 = 'DELETE FROM login_attempts WHERE (login_attempts.ip_hash = ?) AND (login_attempts.username = ?) AND (login_attempts.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
106 106
         $valuesToBind = [
107 107
             [$ipHash, \PDO::PARAM_STR],
108 108
             [$username, \PDO::PARAM_STR],
109 109
         ];
110
-        $statement0    = MockStatementFactory::createWriteStatement($this, $valuesToBind);
110
+        $statement0 = MockStatementFactory::createWriteStatement($this, $valuesToBind);
111 111
 
112 112
         $this->writeConnectionMock
113 113
             ->expects($this->exactly(1))
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
         $ipHash   = 'foo';
129 129
         $username = 'bar';
130 130
 
131
-        $sql0          = 'DELETE FROM login_attempts WHERE (login_attempts.ip_hash = ?) AND (login_attempts.username = ?) AND (login_attempts.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
131
+        $sql0 = 'DELETE FROM login_attempts WHERE (login_attempts.ip_hash = ?) AND (login_attempts.username = ?) AND (login_attempts.created_at > NOW() - INTERVAL 1 HOUR)'; // phpcs:ignore
132 132
         $valuesToBind = [
133 133
             [$ipHash, \PDO::PARAM_STR],
134 134
             [$username, \PDO::PARAM_STR],
135 135
         ];
136
-        $statement0    = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo);
136
+        $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo);
137 137
 
138 138
         $this->writeConnectionMock
139 139
             ->expects($this->exactly(1))
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.