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