| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Process |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var SymphonyProcess |
||
| 19 | */ |
||
| 20 | private SymphonyProcess $process; |
||
| 21 | /** |
||
| 22 | * @var ProcessHandler |
||
| 23 | */ |
||
| 24 | private ProcessHandler $handler; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Process constructor. |
||
| 28 | * @param string $path |
||
| 29 | * @param ProcessHandler $handler |
||
| 30 | */ |
||
| 31 | public function __construct(string $path, ProcessHandler $handler) |
||
| 32 | { |
||
| 33 | $this->process = new SymphonyProcess(["php", $path, "parallel:run", Serializer::base64_serialize($handler)]); |
||
| 34 | $this->handler = $handler; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function label() |
||
| 40 | } |
||
| 41 | |||
| 42 | public function __call($name, $arguments) |
||
| 43 | { |
||
| 44 | return call_user_func(array($this->process, $name), ...$arguments); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function __get($name) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return mixed|string |
||
| 54 | */ |
||
| 55 | public function getOutput() |
||
| 63 |
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