| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function setComments(array $comments): void |
||
| 22 | { |
||
| 23 | foreach ($comments as $comment) { |
||
| 24 | $this->baselineData[$comment->file][$comment->line] = [ |
||
| 25 | 'comment' => $comment->content, |
||
| 26 | 'type' => $comment->commentType, |
||
| 27 | ]; |
||
| 28 | } |
||
| 29 | file_put_contents($this->path, "<?php return " . var_export($this->baselineData, true) . ";"); |
||
| 30 | } |
||
| 40 |