1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace Hhxsv5\LaravelS\Swoole\Task; |
||
4 | |||
5 | use Illuminate\Queue\SerializesModels; |
||
0 ignored issues
–
show
The type
Illuminate\Queue\SerializesModels was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
6 | |||
7 | abstract class Task extends BaseTask |
||
0 ignored issues
–
show
|
|||
8 | { |
||
9 | use SerializesModels; |
||
10 | |||
11 | /** |
||
12 | * The logic of handling task |
||
13 | * @return void |
||
0 ignored issues
–
show
|
|||
14 | */ |
||
15 | abstract public function handle(); |
||
16 | |||
17 | /** |
||
18 | * Deliver a task |
||
19 | * @param Task $task The task object |
||
0 ignored issues
–
show
|
|||
20 | * @return bool |
||
0 ignored issues
–
show
|
|||
21 | */ |
||
22 | public static function deliver(self $task) |
||
23 | { |
||
24 | return $task->task($task); |
||
25 | } |
||
26 | } |