@@ -57,7 +57,7 @@ discard block |
||
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 |
||
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', |
@@ -5,7 +5,7 @@ |
||
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; |
@@ -98,7 +98,7 @@ |
||
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); |
@@ -165,8 +165,4 @@ |
||
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 |
@@ -42,7 +42,7 @@ |
||
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 | } |
@@ -80,6 +80,6 @@ |
||
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 | } |
@@ -175,7 +175,7 @@ |
||
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 | } |
@@ -67,7 +67,7 @@ |
||
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 |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | '/foo?', |
132 | 132 | '/foo?sort-A-input=1&sort-B-input=-1&', |
133 | 133 | ], |
134 | - ] ; |
|
134 | + ]; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | ['A' => 'A-input', 'B' => 'B-input'], |
148 | 148 | ['A' => 'a_field', 'b' => 'b_field'], |
149 | 149 | ['a' => 'A', 'b' => 'B'] |
150 | - ) ; |
|
150 | + ); |
|
151 | 151 | |
152 | 152 | $sut->setParams($params); |
153 | 153 | |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | ['A' => 'A-input', 'B' => 'B-input'], |
192 | 192 | ['A' => 'a_field', 'B' => 'b_field'], |
193 | 193 | ['a' => 'A', 'b' => 'B'] |
194 | - ) ; |
|
194 | + ); |
|
195 | 195 | |
196 | 196 | $sut->setParams($params); |
197 | 197 |