Completed
Push — master ( 3d9909...7a8301 )
by Valentyn
03:23
created
src/Movies/Pagination/MovieCollection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
     private $totalCount;
13 13
     private $movies;
14 14
 
15
+    /**
16
+     * @param integer $totalCount
17
+     */
15 18
     public function __construct(array $movies, $totalCount, int $offset = 0)
16 19
     {
17 20
         $this->totalCount = abs($totalCount);
Please login to merge, or discard this patch.
src/Movies/EventListener/MovieSyncProcessor.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      *
107 107
      * @throws \Doctrine\ORM\ORMException
108 108
      *
109
-     * @return null|Genre
109
+     * @return Genre
110 110
      */
111 111
     private function getGenreReference(int $id): ?object
112 112
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\Genres\Entity\Genre;
6 6
 use App\Movies\Entity\Movie;
7
-use App\Movies\Repository\MovieRepository;
8 7
 use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
9 8
 use Doctrine\ORM\EntityManager;
10 9
 use Doctrine\ORM\EntityManagerInterface;
Please login to merge, or discard this patch.
src/Movies/Controller/MovieController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use App\Controller\BaseController;
6 6
 use App\Movies\Entity\Movie;
7 7
 use App\Movies\EventListener\AddRecommendationProcessor;
8
-use App\Movies\Pagination\MovieCollection;
9 8
 use App\Movies\Repository\MovieRecommendationRepository;
10 9
 use App\Movies\Repository\MovieRepository;
11 10
 use App\Movies\Request\CreateMovieRequest;
Please login to merge, or discard this patch.
src/Movies/Repository/MovieRepository.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@  discard block
 block discarded – undo
90 90
         return $result;
91 91
     }
92 92
 
93
+    /**
94
+     * @param GuestSession|null $guestSession
95
+     */
93 96
     public function findAllWithIsGuestWatchedFlag(?GuestSession $guestSession)
94 97
     {
95 98
         $guestSessionId = $guestSession ? $guestSession->getId() : 0;
@@ -169,6 +172,9 @@  discard block
 block discarded – undo
169 172
         return $result;
170 173
     }
171 174
 
175
+    /**
176
+     * @param integer $tmdb_id
177
+     */
172 178
     public function findOneByIdOrTmdbId(?int $id = null, ?int $tmdb_id = null)
173 179
     {
174 180
         if ($id === null && $tmdb_id === null) {
Please login to merge, or discard this patch.