Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 2 | public function __invoke(Subject $subject, Body $body, Footer $footer, bool $addAllToStage): void |
|
16 | { |
||
17 | 2 | if ($addAllToStage) { |
|
18 | 1 | $this->exec('git add .'); |
|
19 | } |
||
20 | |||
21 | 2 | $safeSubject = escapeshellarg((string)$subject); |
|
22 | 2 | $safeBody = escapeshellarg((string)$body); |
|
23 | 2 | $safeFooter = escapeshellarg((string)$footer); |
|
24 | 2 | $this->exec("git commit -m $safeSubject -m $safeBody -m $safeFooter"); |
|
25 | 2 | } |
|
26 | |||
31 | } |