Issues (1019)

src/Swoole/Task/Task.php (7 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
abstract class Task extends BaseTask
0 ignored issues
show
Missing doc comment for class Task
Loading history...
8
{
9
    use SerializesModels;
10
11
    /**
12
     * The logic of handling task
13
     * @return void
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
14
     */
15
    abstract public function handle();
16
17
    /**
18
     * Deliver a task
19
     * @param Task $task The task object
0 ignored issues
show
There must be exactly one blank line before the tags in a doc comment
Loading history...
Tag value for @param tag indented incorrectly; expected 2 spaces but found 1
Loading history...
20
     * @return bool
0 ignored issues
show
Tag @return cannot be grouped with parameter tags in a doc comment
Loading history...
21
     */
22
    public static function deliver(self $task)
23
    {
24
        return $task->task($task);
25
    }
26
}