Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | protected function failedToString(): string |
||
45 | { |
||
46 | return (string) array_reduce($this->pool->getFailed(), function ($currentStatus, ParallelProcess $process) { |
||
47 | $output = $process->getErrorOutput(); |
||
48 | |||
49 | if ($output instanceof SerializableException) { |
||
50 | $output = get_class($output->asThrowable()).': '.$output->asThrowable()->getMessage(); |
||
51 | } |
||
52 | |||
53 | return $this->lines((string) $currentStatus, "{$process->getPid()} failed with {$output}"); |
||
54 | }); |
||
55 | } |
||
56 | } |
||
57 |