| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | #[Route('/{userId}', methods: ['GET'])] |
||
| 31 | function getPostsByUserId(string $userId, Request $request): Response |
||
|
|
|||
| 32 | { |
||
| 33 | $pageNo = $request->query->get("pageNo", "1"); |
||
| 34 | return $this->json( |
||
| 35 | $this->securityApi->findPostsByUserId(new FindPostsByUserIdQuery(new Ulid($userId), intval($pageNo))) |
||
| 36 | ); |
||
| 38 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.