| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | protected function saveResult(ProcessInterface $process, Result $result): Result |
||
| 22 | { |
||
| 23 | if ($process instanceof ChangesCountInterface) { |
||
| 24 | $result->setCommits($process->countChanges()); |
||
| 25 | } |
||
| 26 | |||
| 27 | if ($process instanceof CyclomaticComplexityInterface) { |
||
| 28 | $result->setComplexity($process->getCyclomaticComplexity()); |
||
| 29 | } |
||
| 30 | |||
| 31 | return $result; |
||
| 32 | } |
||
| 34 |