@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @param array|Movie[]|\Iterator $movies |
| 19 | - * @param $totalCount |
|
| 19 | + * @param integer $totalCount |
|
| 20 | 20 | * @param int $offset |
| 21 | 21 | */ |
| 22 | 22 | public function __construct($movies, $totalCount, int $offset = 0) |
@@ -82,6 +82,9 @@ |
||
| 82 | 82 | $this->sendEmail($user->getEmail(), $subject, $body); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | + /** |
|
| 86 | + * @param string $recipientEmail |
|
| 87 | + */ |
|
| 85 | 88 | private function sendEmail($recipientEmail, string $subject, string $body) |
| 86 | 89 | { |
| 87 | 90 | $this->logger->info("[MAILER] Trying to send email to {$recipientEmail} with next params:", [ |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use App\Movies\Repository\MovieRepository; |
| 7 | 7 | use App\Movies\Transformer\MovieTransformer; |
| 8 | 8 | use App\Pagination\CustomPaginatedCollection; |
| 9 | -use App\Pagination\PaginatedCollection; |
|
| 10 | 9 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 11 | 10 | use Symfony\Component\HttpFoundation\Request; |
| 12 | 11 | use Symfony\Component\Routing\Annotation\Route; |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 28 | 28 | use Symfony\Component\Routing\Annotation\Route; |
| 29 | 29 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
| 30 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Entity; |
|
| 31 | 30 | |
| 32 | 31 | /** |
| 33 | 32 | * Class MovieController. |