| Total Complexity | 7 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ProcessException extends RuntimeException implements ProcessExceptionInterface |
||
| 11 | { |
||
| 12 | /** @var Process */ |
||
| 13 | protected $process; |
||
| 14 | |||
| 15 | public function __construct(Process $process, SPException\RuntimeException $previousException) |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Return symfony process object. |
||
| 37 | */ |
||
| 38 | public function getProcess(): Process |
||
| 41 | } |
||
| 42 | |||
| 43 | public function geErrorOutput(): string |
||
| 44 | { |
||
| 45 | return $this->process->getErrorOutput(); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return SPException\RuntimeException|SPException\ProcessFailedException|SPException\ProcessSignaledException|SPException\ProcessTimedOutException |
||
| 50 | */ |
||
| 51 | public function getSymfonyProcessRuntimeException(): SPException\RuntimeException |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
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.