| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function notifyUser(ExportStoredFile $fileModel): void |
||
| 37 | { |
||
| 38 | $user = $this->notificationUser(); |
||
| 39 | if ($user && $fileModel?->exists) { |
||
| 40 | $user->notify( |
||
| 41 | NovaNotification::make() |
||
| 42 | ->message("File {$fileModel->name} exported") |
||
|
|
|||
| 43 | ->action('Download', URL::remote($this->downloadLink(route(config('nova-export-configuration.defaults.download_route'), $fileModel->path)))) |
||
| 44 | ->icon('download') |
||
| 45 | ->type('info') |
||
| 46 | ); |
||
| 50 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.