@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function commonBehaviourDataProvider(): array |
| 164 | 164 | { |
| 165 | - $setup = function (): object { |
|
| 165 | + $setup = function(): object { |
|
| 166 | 166 | // setup method |
| 167 | 167 | $listBuilder = new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 168 | 168 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | return $listBuilder; |
| 172 | 172 | }; |
| 173 | 173 | |
| 174 | - $assert = function ($result): void { |
|
| 174 | + $assert = function($result): void { |
|
| 175 | 175 | // asserting method |
| 176 | 176 | $this->assertStringNotContainsString('!1!', $result); |
| 177 | 177 | $this->assertStringNotContainsString('!2!', $result); |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | // #0, listingForm |
| 188 | 188 | [ |
| 189 | 189 | $setup, |
| 190 | - function ($result): void { |
|
| 190 | + function($result): void { |
|
| 191 | 191 | // asserting method |
| 192 | 192 | $this->assertStringContainsStrings([ |
| 193 | 193 | '!1!', |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | ], |
| 198 | 198 | // #1, listingForm, no custom buttons |
| 199 | 199 | [ |
| 200 | - function (): object { |
|
| 200 | + function(): object { |
|
| 201 | 201 | // setup method |
| 202 | 202 | return new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 203 | 203 | }, |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | ], |
| 206 | 206 | // #2, listingForm, no custom buttons |
| 207 | 207 | [ |
| 208 | - function () use ($headerData): object { |
|
| 208 | + function() use ($headerData): object { |
|
| 209 | 209 | // setup method |
| 210 | 210 | return new CommonListBuilder($headerData, new FakeAdapter($this->getRecords())); |
| 211 | 211 | }, |
@@ -213,11 +213,11 @@ discard block |
||
| 213 | 213 | ], |
| 214 | 214 | // #3, listingForm, no custom buttons |
| 215 | 215 | [ |
| 216 | - function () use ($headerData): object { |
|
| 216 | + function() use ($headerData): object { |
|
| 217 | 217 | // setup method |
| 218 | 218 | return new CommonListBuilder($headerData, new FakeAdapter($this->getRecords())); |
| 219 | 219 | }, |
| 220 | - function (string $result) use ($assert) { |
|
| 220 | + function(string $result) use ($assert) { |
|
| 221 | 221 | $assert($result); |
| 222 | 222 | |
| 223 | 223 | $this->assertStringContainsStrings([ |
@@ -229,13 +229,13 @@ discard block |
||
| 229 | 229 | ], |
| 230 | 230 | // #4, listingForm, default buttons |
| 231 | 231 | [ |
| 232 | - function (): object { |
|
| 232 | + function(): object { |
|
| 233 | 233 | // setup method |
| 234 | 234 | $_GET['update-button'] = 1; |
| 235 | 235 | $_GET['create-button'] = 1; |
| 236 | 236 | return new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 237 | 237 | }, |
| 238 | - function (string $result) use ($assert) { |
|
| 238 | + function(string $result) use ($assert) { |
|
| 239 | 239 | $assert($result); |
| 240 | 240 | |
| 241 | 241 | $this->assertStringContainsStrings([ |
@@ -247,14 +247,14 @@ discard block |
||
| 247 | 247 | ], |
| 248 | 248 | // #5, listingForm, custom title and description |
| 249 | 249 | [ |
| 250 | - function (): object { |
|
| 250 | + function(): object { |
|
| 251 | 251 | // setup method |
| 252 | 252 | $listBuilder = new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 253 | 253 | $listBuilder->listTitle = 'List Title'; |
| 254 | 254 | $listBuilder->listDescription = 'List Description'; |
| 255 | 255 | return $listBuilder; |
| 256 | 256 | }, |
| 257 | - function (string $result) use ($assert) { |
|
| 257 | + function(string $result) use ($assert) { |
|
| 258 | 258 | $assert($result); |
| 259 | 259 | |
| 260 | 260 | $this->assertStringContainsStrings([ |
@@ -268,11 +268,11 @@ discard block |
||
| 268 | 268 | ], |
| 269 | 269 | // #6, listingForm, default title and description |
| 270 | 270 | [ |
| 271 | - function (): object { |
|
| 271 | + function(): object { |
|
| 272 | 272 | // setup method |
| 273 | 273 | return new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 274 | 274 | }, |
| 275 | - function (string $result) use ($assert) { |
|
| 275 | + function(string $result) use ($assert) { |
|
| 276 | 276 | $assert($result); |
| 277 | 277 | |
| 278 | 278 | $this->assertStringContainsStrings( |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | */ |
| 147 | 147 | public function commonBehaviourDataProvider(): array |
| 148 | 148 | { |
| 149 | - $assert = function ($result): void { |
|
| 149 | + $assert = function($result): void { |
|
| 150 | 150 | // asserting method |
| 151 | 151 | $this->assertStringNotContainsString('!1!', $result); |
| 152 | 152 | $this->assertStringNotContainsString('!2!', $result); |
@@ -155,14 +155,14 @@ discard block |
||
| 155 | 155 | return [ |
| 156 | 156 | // #0, listingForm, custom title and description |
| 157 | 157 | [ |
| 158 | - function (): object { |
|
| 158 | + function(): object { |
|
| 159 | 159 | // setup method |
| 160 | 160 | $listBuilder = new SimpleListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 161 | 161 | $listBuilder->listTitle = 'List Title'; |
| 162 | 162 | $listBuilder->listDescription = 'List Description'; |
| 163 | 163 | return $listBuilder; |
| 164 | 164 | }, |
| 165 | - function (string $result) use ($assert) { |
|
| 165 | + function(string $result) use ($assert) { |
|
| 166 | 166 | $assert($result); |
| 167 | 167 | |
| 168 | 168 | $this->assertStringContainsStrings([ |
@@ -176,11 +176,11 @@ discard block |
||
| 176 | 176 | ], |
| 177 | 177 | // #1, listingForm, default title and description |
| 178 | 178 | [ |
| 179 | - function (): object { |
|
| 179 | + function(): object { |
|
| 180 | 180 | // setup method |
| 181 | 181 | return new SimpleListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 182 | 182 | }, |
| 183 | - function (string $result) use ($assert) { |
|
| 183 | + function(string $result) use ($assert) { |
|
| 184 | 184 | $assert($result); |
| 185 | 185 | |
| 186 | 186 | $this->assertStringContainsStrings( |