Passed
Pull Request — main (#2)
by
unknown
06:58 queued 03:51
created
tests/Grid/Component/HeaderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 '/foo?',
129 129
                 '/foo?sort-A-input=1&sort-B-input=-1&'
130 130
             ],
131
-        ]   ;
131
+        ];
132 132
     }
133 133
 
134 134
     /**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             ['A' => 'A-input', 'B' => 'B-input'],
145 145
             ['A' => 'a_field', 'b' => 'b_field'],
146 146
             ['a' => 'A', 'b' => 'B']
147
-        )  ;
147
+        );
148 148
 
149 149
         $sut->setParams($params);
150 150
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             ['A' => 'A-input', 'B' => 'B-input'],
189 189
             ['A' => 'a_field', 'B' => 'b_field'],
190 190
             ['a' => 'A', 'b' => 'B']
191
-        )  ;
191
+        );
192 192
 
193 193
         $sut->setParams($params);
194 194
 
Please login to merge, or discard this patch.
tests/Html/TagTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 
110 110
     public function testUnsetAttributeValueWorksIfAttributeIsSetButValueIsNot()
111 111
     {
112
-        $key   = 'foo';
112
+        $key = 'foo';
113 113
         $value1 = 'bar';
114 114
         $value2 = 'baz';
115 115
 
Please login to merge, or discard this patch.
tests/Template/CacheManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                 CacheData::PAYLOAD_KEY_SUBTEMPLATES => $cacheData->getSubTemplates(),
99 99
             ]
100 100
         );
101
-        $key     = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId);
101
+        $key = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId);
102 102
 
103 103
         $this->cacheBridgeMock->expects($this->once())->method('set')->with($key, $payload, PHP_INT_MAX);
104 104
         $this->cacheBridgeMock->expects($this->once())->method('has')->with($key);
Please login to merge, or discard this patch.
tests/Navigation/ItemTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
     public function testGetRoleGetsLastSetResource()
119 119
     {
120
-        $content  = 'foo';
120
+        $content = 'foo';
121 121
         $role = 'bar';
122 122
 
123 123
         $sut = $this->createNode($content);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
     public function testDisabledItemCastsToEmptyString()
133 133
     {
134
-        $content  = 'foo';
134
+        $content = 'foo';
135 135
         $sut = $this->createNode($content);
136 136
 
137 137
         $sut->disable();
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
     public function testEnableCanRevertDisabling()
143 143
     {
144
-        $content  = 'foo';
144
+        $content = 'foo';
145 145
         $sut = $this->createNode($content);
146 146
 
147 147
         $sut->disable();
Please login to merge, or discard this patch.
src/Module/Manager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function getHttpBootstrappers(): array
86 86
     {
87
-        $callback = function(array $modules) {
87
+        $callback = function (array $modules) {
88 88
             $bootstrappers = [];
89 89
             foreach ($modules as $module) {
90 90
                 if (isset($module[Module::BOOTSTRAPPERS])) {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function getCliBootstrappers(): array
108 108
     {
109
-        $callback = function(array $modules) {
109
+        $callback = function (array $modules) {
110 110
             $bootstrappers = [];
111 111
             foreach ($modules as $module) {
112 112
                 if (isset($module[Module::BOOTSTRAPPERS])) {
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function getCommands(): array
130 130
     {
131
-        $callback = function(array $modules) {
131
+        $callback = function (array $modules) {
132 132
             $commands = [];
133 133
             foreach ($modules as $module) {
134 134
                 if (isset($module[Module::COMMANDS])) {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     protected function simpleOptionCallback(string $option): callable
221 221
     {
222
-        return function($modules) use ($option) {
222
+        return function ($modules) use ($option) {
223 223
             $merged = [];
224 224
             foreach ($modules as $module) {
225 225
                 if (!isset($module[$option])) {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     protected function simpleNamedOptions(string $option): callable
248 248
     {
249
-        return function($modules) use ($option) {
249
+        return function ($modules) use ($option) {
250 250
             $merged = [];
251 251
             foreach ($modules as $module) {
252 252
                 if (!isset($module[$option])) {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      */
278 278
     protected function namedPrioritizedOptionsCallback(string $option): callable
279 279
     {
280
-        return function($modules) use ($option) {
280
+        return function ($modules) use ($option) {
281 281
             $prioritized = [];
282 282
             foreach ($modules as $module) {
283 283
                 if (!isset($module[$option])) {
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      */
327 327
     protected function prioritizedOptionsCallback(string $option, bool $reversed = false): callable
328 328
     {
329
-        return function($modules) use ($option, $reversed) {
329
+        return function ($modules) use ($option, $reversed) {
330 330
             $merged = [];
331 331
             foreach ($modules as $module) {
332 332
                 if (!isset($module[$option])) {
Please login to merge, or discard this patch.
src/Bootstrappers/Http/Views/BuildersBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         $viewFactory->registerBuilder(
25 25
             'layouts/default',
26
-            function(IView $view) {
26
+            function (IView $view) {
27 27
                 /** @see DefaultBuilder::build() */
28 28
                 return (new DefaultBuilder())->build($view);
29 29
             }
Please login to merge, or discard this patch.
src/Bootstrappers/I18n/I18nBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         $transpiler = $container->resolve(ITranspiler::class);
175 175
         $transpiler->registerViewFunction(
176 176
             'tr',
177
-            function(string $key, ...$args) use ($translator) {
177
+            function (string $key, ...$args) use ($translator) {
178 178
                 return $translator->translate($key, ...$args);
179 179
             }
180 180
         );
Please login to merge, or discard this patch.
src/Bootstrappers/Authorization/EnforcerBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function createCanViewViewFunction(?string $username, Enforcer $enforcer): callable
82 82
     {
83
-        return function(string $key) use ($username, $enforcer) {
83
+        return function (string $key) use ($username, $enforcer) {
84 84
             return $enforcer->enforce($username, 'admin_resource_' . $key, Role::READ);
85 85
         };
86 86
     }
Please login to merge, or discard this patch.
asset-routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  */
16 16
 $router->group(
17 17
     ['controllerNamespace' => 'AbterPhp\Framework\Http\Controllers'],
18
-    function(Router $router) {
18
+    function (Router $router) {
19 19
 
20 20
         /** @see \AbterPhp\Framework\Http\Controllers\Website\Assets::asset() */
21 21
         $router->get(
Please login to merge, or discard this patch.