We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 4 | 
| Total Lines | 33 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php | ||
| 9 | class FakeUploaderCrudController extends CrudController | ||
| 10 | { | ||
| 11 | use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation; | ||
|  | |||
| 12 | use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation; | ||
| 13 | use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation; | ||
| 14 | |||
| 15 | public function setup() | ||
| 20 | } | ||
| 21 | |||
| 22 | protected function setupCreateOperation() | ||
| 23 |     { | ||
| 24 |         CRUD::field('upload') | ||
| 25 |             ->type('upload') | ||
| 26 | ->fake(true) | ||
| 27 | ->withFiles(['disk' => 'uploaders', 'fileNamer' => fn ($value) => $value->getClientOriginalName()]); | ||
| 28 |         CRUD::field('upload_multiple') | ||
| 29 |             ->type('upload_multiple') | ||
| 30 | ->fake(true) | ||
| 31 | ->withFiles(['disk' => 'uploaders', 'fileNamer' => fn ($value) => $value->getClientOriginalName()]); | ||
| 32 | } | ||
| 33 | |||
| 34 | protected function setupUpdateOperation() | ||
| 35 |     { | ||
| 36 | $this->setupCreateOperation(); | ||
| 37 | } | ||
| 38 | |||
| 39 | public function setupDeleteOperation() | ||
| 42 | } | ||
| 43 | } | ||
| 44 |