| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 11 | class EventObserver |
||
| 12 | { |
||
| 13 | use FileTraits; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Handle the event "created" event. |
||
| 17 | * |
||
| 18 | * @param \App\Event $event |
||
|
|
|||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public function created(Event $event) |
||
| 22 | { |
||
| 23 | if (request()->has('banner')) { |
||
| 24 | UploadImage::withChain([ |
||
| 25 | new ProcessImage($event), |
||
| 26 | new S3Upload($event), |
||
| 27 | ])->dispatch($event, request('banner')); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Handle the event "updated" event. |
||
| 33 | * |
||
| 34 | * @param \App\Event $event |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function updated(Event $event) |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Handle the event "deleted" event. |
||
| 50 | * |
||
| 51 | * @param \App\Event $event |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | public function deleted(Event $event) |
||
| 59 | } |
||
| 60 | } |
||
| 62 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths