We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | public function testAddButtonFluently() |
| 277 | 277 | { |
| 278 | 278 | $button1 = CrudButton::name('lineTest')->to('line')->view('crud::buttons.test')->type('view'); |
| 279 | - $button2 = CrudButton::add('modelFunction')->model_function(function () { |
|
| 279 | + $button2 = CrudButton::add('modelFunction')->model_function(function() { |
|
| 280 | 280 | return 'test'; |
| 281 | 281 | })->section('top')->makeFirst(); |
| 282 | 282 | $this->assertEquals($button1->toArray(), $this->crudPanel->buttons()->last()->toArray()); |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | |
| 291 | 291 | $this->expectException(\Symfony\Component\HttpKernel\Exception\HttpException::class); |
| 292 | 292 | |
| 293 | - $this->crudPanel->modifyButton('unknownButton', function ($button) { |
|
| 293 | + $this->crudPanel->modifyButton('unknownButton', function($button) { |
|
| 294 | 294 | $button->name = 'newName'; |
| 295 | 295 | }); |
| 296 | 296 | } |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | private function getButtonByName($name) |
| 344 | 344 | { |
| 345 | - return $this->crudPanel->buttons()->first(function ($value) use ($name) { |
|
| 345 | + return $this->crudPanel->buttons()->first(function($value) use ($name) { |
|
| 346 | 346 | return $value->name == $name; |
| 347 | 347 | }); |
| 348 | 348 | } |