| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 26 | public function getTemplateData() |
||
| 27 | { |
||
| 28 | /** @var UserEntity $userEntity */ |
||
| 29 | $userEntity = $this->userStorage->getUserById(1); |
||
| 30 | |||
| 31 | return [ |
||
| 32 | 'blogPosts' => [ |
||
| 33 | [ |
||
| 34 | 'title' => 'Fake test 1', |
||
| 35 | 'slug' => 'fake_1', |
||
| 36 | 'publishedAt' => time(), |
||
| 37 | 'author' => [ |
||
| 38 | 'name' => $userEntity->getUserName() |
||
| 39 | ], |
||
| 40 | 'content' => 'Lorem ipsum dolor sit amet...' |
||
| 41 | ], |
||
| 42 | [ |
||
| 43 | 'title' => 'Fake test 2', |
||
| 44 | 'slug' => 'fake_2', |
||
| 45 | 'publishedAt' => time(), |
||
| 46 | 'author' => [ |
||
| 47 | 'name' => 'Jane Doe' |
||
| 48 | ], |
||
| 49 | 'content' => 'Lorem ipsum dolor sit amet...' |
||
| 50 | ] |
||
| 51 | ] |
||
| 52 | ]; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |