Passed
Push — attributes ( 57ed6a...578d64 )
by Peter
08:20
created
src/Http/Middleware/EnvironmentWarning.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function getWarningHtml(string $environmentName): string
59 59
     {
60
-        $styles  = [
60
+        $styles = [
61 61
             'color'       => 'white',
62 62
             'line-height' => '1em',
63 63
             'font-weight' => 'bold',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $this->translator->translate('admin:environment', $environmentName)
69 69
         );
70 70
 
71
-        $styles  = [
71
+        $styles = [
72 72
             'position'   => 'fixed',
73 73
             'bottom'     => '10px',
74 74
             'right'      => '10px',
Please login to merge, or discard this patch.
src/Grid/Row/Row.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 namespace AbterPhp\Framework\Grid\Row;
6 6
 
7 7
 use AbterPhp\Framework\Constant\Html5;
8
-use AbterPhp\Framework\Grid\Action\IAction;  // @phan-suppress-current-line PhanUnreferencedUseNormal
8
+use AbterPhp\Framework\Grid\Action\IAction; // @phan-suppress-current-line PhanUnreferencedUseNormal
9 9
 use AbterPhp\Framework\Grid\Cell\Cell;
10 10
 use AbterPhp\Framework\Grid\Collection\Cells;
11 11
 use AbterPhp\Framework\Grid\Component\Actions;
Please login to merge, or discard this patch.
src/Form/Label/Countable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     ) {
52 52
         parent::__construct($inputId, $content, $intents, $attributes, $tag);
53 53
 
54
-        $attributes    = [
54
+        $attributes = [
55 55
             static::ATTR_DATA_COUNT => $size,
56 56
             Html5::ATTR_CLASS       => static::CLASS_COUNT,
57 57
         ];
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.
src/Debug/Exceptions/Handlers/Whoops/ExceptionRenderer.php 5 patches
Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,8 +165,4 @@
 block discarded – undo
165 165
             $values = (array)$values;
166 166
 
167 167
             foreach ($values as $value) {
168
-                header("$name:$value", false);
169
-            }
170
-        }
171
-    }
172
-}
168
+                header("$name:$value
173 169
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,8 +165,4 @@
 block discarded – undo
165 165
             $values = (array)$values;
166 166
 
167 167
             foreach ($values as $value) {
168
-                header("$name:$value", false);
169
-            }
170
-        }
171
-    }
172
-}
168
+                header("$name:$value
173 169
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,8 +165,4 @@
 block discarded – undo
165 165
             $values = (array)$values;
166 166
 
167 167
             foreach ($values as $value) {
168
-                header("$name:$value", false);
169
-            }
170
-        }
171
-    }
172
-}
168
+                header("$name:$value
173 169
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,8 +165,4 @@
 block discarded – undo
165 165
             $values = (array)$values;
166 166
 
167 167
             foreach ($values as $value) {
168
-                header("$name:$value", false);
169
-            }
170
-        }
171
-    }
172
-}
168
+                header("$name:$value
173 169
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,8 +165,4 @@
 block discarded – undo
165 165
             $values = (array)$values;
166 166
 
167 167
             foreach ($values as $value) {
168
-                header("$name:$value", false);
169
-            }
170
-        }
171
-    }
172
-}
168
+                header("$name:$value
173 169
\ No newline at end of file
Please login to merge, or discard this patch.
src/Decorator/Rule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->defaultClasses    = $defaultClasses;
43 43
         $this->intentClassMap    = $intentClassMap;
44 44
         if (!$callback) {
45
-            $callback = fn ($x) => $x;
45
+            $callback = fn($x) => $x;
46 46
         }
47 47
         $this->callback = $callback;
48 48
     }
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,6 +80,6 @@
 block discarded – undo
80 80
      */
81 81
     public function createCanViewViewFunction(?string $username, Enforcer $enforcer): callable
82 82
     {
83
-        return fn (string $key) => $enforcer->enforce($username, 'admin_resource_' . $key, Role::READ);
83
+        return fn(string $key) => $enforcer->enforce($username, 'admin_resource_' . $key, Role::READ);
84 84
     }
85 85
 }
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
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
         $transpiler = $container->resolve(ITranspiler::class);
176 176
         $transpiler->registerViewFunction(
177 177
             'tr',
178
-            fn (string $key, ...$args) => $translator->translate($key, ...$args)
178
+            fn(string $key, ...$args) => $translator->translate($key, ...$args)
179 179
         );
180 180
     }
181 181
 }
Please login to merge, or discard this patch.
tests/Grid/Component/BodyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $entities[] = $this->createEntity('bar', 2);
68 68
 
69 69
         $getters = [
70
-            'foo' => fn ($entity) => $entity->getFoo(),
70
+            'foo' => fn($entity) => $entity->getFoo(),
71 71
             'bar' => [$entities[0], 'getBar'],
72 72
         ];
73 73
 
Please login to merge, or discard this patch.