| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function findPostHeaders(): array |
||
| 24 | { |
||
| 25 | 9 | return Collection::from($this->headersFindingRepository->findPostHeaders()) |
|
| 26 | ->map(function ($header) { |
||
| 27 | 9 | return new FindCommentsPostHeadersQueryResponse( |
|
| 28 | 9 | $header->getId(), |
|
| 29 | 8 | $header->getTitle(), |
|
| 30 | 8 | $header->getTags(), |
|
| 31 | 8 | $header->getVersion() |
|
| 32 | 8 | ); |
|
| 33 | 8 | }) |
|
| 34 | 8 | ->toArray(); |
|
| 35 | } |
||
| 36 | } |