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