Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
20 | public function run(Directory $workingDirectory, Argument ...$arguments): Result |
||
21 | 2 | { |
|
22 | $result = $this->cliClient->run($workingDirectory, ...$arguments); |
||
23 | |||
24 | if (!$result->isSuccess()) { |
||
25 | throw new Exception($result->getErrorMessage()); |
||
26 | } |
||
27 | |||
28 | return $result; |
||
29 | } |
||
30 | } |
||
31 |