| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 1 | public function __invoke(UserInterface $user, ParamFetcher $paramFetcher) |
|
| 44 | { |
||
| 45 | /** @var User $user */ |
||
| 46 | 1 | $articles = $this->repository->getFollowedUsersArticles( |
|
| 47 | 1 | $user, |
|
| 48 | 1 | (int) $paramFetcher->get('offset'), |
|
| 49 | 1 | (int) $paramFetcher->get('limit') |
|
| 50 | ); |
||
| 51 | |||
| 52 | 1 | $articlesCount = count($articles); |
|
| 53 | |||
| 54 | return [ |
||
| 55 | 1 | 'articles' => $articles, |
|
| 56 | 1 | 'articlesCount' => $articlesCount, |
|
| 57 | ]; |
||
| 60 |