@@ -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; |
@@ -51,7 +51,7 @@ |
||
| 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 | ]; |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | $router->group( |
| 16 | 16 | ['controllerNamespace' => 'AbterPhp\Framework\Http\Controllers'], |
| 17 | - function (Router $router) { |
|
| 17 | + function(Router $router) { |
|
| 18 | 18 | /** @see \AbterPhp\Framework\Http\Controllers\Website\Index::notFound() */ |
| 19 | 19 | $router->any( |
| 20 | 20 | '/:anything', |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $entities[] = $this->createEntity('bar', 2); |
| 68 | 68 | |
| 69 | 69 | $getters = [ |
| 70 | - 'foo' => function ($entity) { |
|
| 70 | + 'foo' => function($entity) { |
|
| 71 | 71 | return $entity->getFoo(); |
| 72 | 72 | }, |
| 73 | 73 | 'bar' => [$entities[0], 'getBar'], |
@@ -128,7 +128,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -25,10 +25,10 @@ discard block |
||
| 25 | 25 | $str = ArrayHelper::toAttributes($attributes); |
| 26 | 26 | |
| 27 | 27 | $callbacks = [ |
| 28 | - StubAttributeFactory::ATTRIBUTE_FOO => function () { |
|
| 28 | + StubAttributeFactory::ATTRIBUTE_FOO => function() { |
|
| 29 | 29 | return [StubAttributeFactory::VALUE_FOO, StubAttributeFactory::VALUE_BAZ]; |
| 30 | 30 | }, |
| 31 | - StubAttributeFactory::ATTRIBUTE_BAR => function () { |
|
| 31 | + StubAttributeFactory::ATTRIBUTE_BAR => function() { |
|
| 32 | 32 | return StubAttributeFactory::VALUE_BAR_BAZ; |
| 33 | 33 | }, |
| 34 | 34 | ]; |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $content = 'Button'; |
| 82 | 82 | $attributes = []; |
| 83 | 83 | $attributeCallbacks = [ |
| 84 | - StubAttributeFactory::ATTRIBUTE_FOO => function ($value, IEntity $entity) { |
|
| 84 | + StubAttributeFactory::ATTRIBUTE_FOO => function($value, IEntity $entity) { |
|
| 85 | 85 | return [$entity->getId()]; |
| 86 | 86 | }, |
| 87 | 87 | ]; |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $this->sut->registerFilesystem( |
| 49 | 49 | $fs, |
| 50 | - function () { |
|
| 50 | + function() { |
|
| 51 | 51 | return false; |
| 52 | 52 | } |
| 53 | 53 | ); |
@@ -66,13 +66,13 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $this->sut->registerFilesystem( |
| 68 | 68 | $fs1, |
| 69 | - function () { |
|
| 69 | + function() { |
|
| 70 | 70 | return false; |
| 71 | 71 | } |
| 72 | 72 | ); |
| 73 | 73 | $this->sut->registerFilesystem( |
| 74 | 74 | $fs2, |
| 75 | - function () { |
|
| 75 | + function() { |
|
| 76 | 76 | return true; |
| 77 | 77 | } |
| 78 | 78 | ); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | $this->sut->registerFilesystem( |
| 106 | 106 | $fs, |
| 107 | - function () { |
|
| 107 | + function() { |
|
| 108 | 108 | return false; |
| 109 | 109 | } |
| 110 | 110 | ); |
@@ -166,13 +166,13 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | $this->sut->registerFilesystem( |
| 168 | 168 | $fs1, |
| 169 | - function () { |
|
| 169 | + function() { |
|
| 170 | 170 | return false; |
| 171 | 171 | } |
| 172 | 172 | ); |
| 173 | 173 | $this->sut->registerFilesystem( |
| 174 | 174 | $fs2, |
| 175 | - function () { |
|
| 175 | + function() { |
|
| 176 | 176 | return true; |
| 177 | 177 | } |
| 178 | 178 | ); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | $this->sut->registerFilesystem( |
| 208 | 208 | $fs, |
| 209 | - function () { |
|
| 209 | + function() { |
|
| 210 | 210 | return false; |
| 211 | 211 | } |
| 212 | 212 | ); |
@@ -254,13 +254,13 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | $this->sut->registerFilesystem( |
| 256 | 256 | $fs1, |
| 257 | - function () { |
|
| 257 | + function() { |
|
| 258 | 258 | return false; |
| 259 | 259 | } |
| 260 | 260 | ); |
| 261 | 261 | $this->sut->registerFilesystem( |
| 262 | 262 | $fs2, |
| 263 | - function () { |
|
| 263 | + function() { |
|
| 264 | 264 | return true; |
| 265 | 265 | } |
| 266 | 266 | ); |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | public function testFlushUsesSetIsFlushableCallback() |
| 385 | 385 | { |
| 386 | 386 | $this->sut->setIsFlushable( |
| 387 | - function ($obj) { |
|
| 387 | + function($obj) { |
|
| 388 | 388 | if ($obj['path'] === 'protected') { |
| 389 | 389 | return false; |
| 390 | 390 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | $this->sut->registerFilesystem( |
| 50 | 50 | $fs, |
| 51 | - function () { |
|
| 51 | + function() { |
|
| 52 | 52 | return false; |
| 53 | 53 | } |
| 54 | 54 | ); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | $this->sut->registerFilesystem( |
| 79 | 79 | $fs, |
| 80 | - function () { |
|
| 80 | + function() { |
|
| 81 | 81 | return false; |
| 82 | 82 | } |
| 83 | 83 | ); |
@@ -139,13 +139,13 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | $this->sut->registerFilesystem( |
| 141 | 141 | $fs1, |
| 142 | - function () { |
|
| 142 | + function() { |
|
| 143 | 143 | return false; |
| 144 | 144 | } |
| 145 | 145 | ); |
| 146 | 146 | $this->sut->registerFilesystem( |
| 147 | 147 | $fs2, |
| 148 | - function () { |
|
| 148 | + function() { |
|
| 149 | 149 | return true; |
| 150 | 150 | } |
| 151 | 151 | ); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | $this->sut->registerFilesystem( |
| 181 | 181 | $fs, |
| 182 | - function () { |
|
| 182 | + function() { |
|
| 183 | 183 | return false; |
| 184 | 184 | } |
| 185 | 185 | ); |
@@ -227,13 +227,13 @@ discard block |
||
| 227 | 227 | |
| 228 | 228 | $this->sut->registerFilesystem( |
| 229 | 229 | $fs1, |
| 230 | - function () { |
|
| 230 | + function() { |
|
| 231 | 231 | return false; |
| 232 | 232 | } |
| 233 | 233 | ); |
| 234 | 234 | $this->sut->registerFilesystem( |
| 235 | 235 | $fs2, |
| 236 | - function () { |
|
| 236 | + function() { |
|
| 237 | 237 | return true; |
| 238 | 238 | } |
| 239 | 239 | ); |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | public function testFlushUsesSetIsFlushableCallback() |
| 322 | 322 | { |
| 323 | 323 | $this->sut->setIsFlushable( |
| 324 | - function ($obj) { |
|
| 324 | + function($obj) { |
|
| 325 | 325 | if ($obj['path'] === 'protected') { |
| 326 | 326 | return false; |
| 327 | 327 | } |
@@ -109,7 +109,7 @@ |
||
| 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 | |