Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | protected function resolvedGetters(CommentInterface $comment): array |
||
18 | { |
||
19 | $dateFormat = CommentEntityManagerInterface::DATE_FORMAT; |
||
20 | |||
21 | $getDate = fn () => $comment->getDate()->format($dateFormat); |
||
22 | $getDateGmt = fn () => $comment->getDateGmt()->format($dateFormat); |
||
23 | |||
24 | return [ |
||
25 | 'date' => $getDate, |
||
26 | 'dateGmt' => $getDateGmt, |
||
27 | 'date_gmt' => $getDateGmt, |
||
28 | ]; |
||
31 |