Total Complexity | 6 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 11 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
16 | final class Job |
||
17 | { |
||
18 | use \Nette\SmartObject; |
||
19 | |||
20 | public readonly string $name; |
||
21 | /** @var callable Task */ |
||
22 | protected $callback; |
||
23 | public readonly array $params; |
||
24 | // phpcs:ignore |
||
25 | public readonly bool|string $skip; |
||
26 | protected JobResult $result = JobResult::PASSED; |
||
|
|||
27 | protected string $output = ""; |
||
28 | /** @var callable[] */ |
||
29 | public array $onAfterExecute = []; |
||
30 | |||
31 | 1 | public function __construct( |
|
43 | } |
||
44 | |||
45 | protected function getCallback(): callable |
||
46 | { |
||
47 | return $this->callback; |
||
48 | } |
||
49 | |||
50 | 1 | protected function getResult(): JobResult |
|
51 | { |
||
52 | 1 | return $this->result; |
|
53 | } |
||
54 | |||
55 | 1 | protected function getOutput(): string |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * Executes the task |
||
62 | */ |
||
63 | 1 | public function execute(): void |
|
76 |
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