Total Complexity | 7 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 95% |
Changes | 0 |
1 | <?php |
||
10 | class ProcessException extends RuntimeException implements ProcessExceptionInterface |
||
11 | { |
||
12 | /** @var Process */ |
||
13 | protected $process; |
||
14 | |||
15 | /** |
||
16 | * ProcessException constructor. |
||
17 | * |
||
18 | * @param Process $process |
||
19 | * @param SPException\RuntimeException $previousException |
||
20 | * @param string|null $message if not set will use the previousException message |
||
21 | */ |
||
22 | 10 | public function __construct(Process $process, SPException\RuntimeException $previousException, string $message = null) |
|
42 | 10 | } |
|
43 | |||
44 | /** |
||
45 | * Return symfony process object. |
||
46 | */ |
||
47 | 1 | public function getProcess(): Process |
|
48 | { |
||
49 | 1 | return $this->process; |
|
50 | } |
||
51 | |||
52 | 1 | public function getErrorOutput(): string |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return SPException\RuntimeException|SPException\ProcessFailedException|SPException\ProcessSignaledException|SPException\ProcessTimedOutException |
||
59 | */ |
||
60 | 1 | public function getSymfonyProcessRuntimeException(): SPException\RuntimeException |
|
70 |
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
will have no issues, while
will report issues in lines 1 and 2.