| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function getTemplateData() |
||
| 34 | { |
||
| 35 | /** @var UserEntity $userEntity */ |
||
| 36 | $userEntity = $this->userStorage->getUserById(1); |
||
| 37 | $routingParams = $this->request->getAttribute(ServerRequestInterface::REQUEST_ATTR_ROUTING_PARAMETERS); |
||
| 38 | |||
| 39 | return [ |
||
| 40 | 'blogPost' => [ |
||
| 41 | 'title' => 'Fake test', |
||
| 42 | 'publishedAt' => time(), |
||
| 43 | 'author' => [ |
||
| 44 | 'name' => $userEntity->getUserName() |
||
| 45 | ], |
||
| 46 | 'content' => 'Lorem ipsum dolor sit amet...', |
||
| 47 | 'parameter' => $routingParams |
||
| 48 | ] |
||
| 49 | ]; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |