Code Duplication    Length = 5-5 lines in 2 locations

src/Command/WeburgDownload.php 2 locations

@@ 190-194 (lines=5) @@
187
        }
188
189
        $movieInfo = $weburgClient->getMovieInfoById($movieId);
190
        foreach (array_keys($movieInfo) as $infoField) {
191
            if (!isset($movieInfo[$infoField])) {
192
                $logger->warning('Cannot find ' . $infoField . ' in movie ' . $movieId);
193
            }
194
        }
195
196
        $movieUrls = $weburgClient->getMovieTorrentUrlsById($movieId);
197
        $torrentsUrls = array_merge($torrentsUrls, $movieUrls);
@@ 238-242 (lines=5) @@
235
            }
236
237
            $movieInfo = $weburgClient->getMovieInfoById($movieId);
238
            foreach (array_keys($movieInfo) as $infoField) {
239
                if (!isset($movieInfo[$infoField])) {
240
                    $logger->warning('Cannot find ' . $infoField . ' in movie ' . $movieId);
241
                }
242
            }
243
244
            $isTorrentPopular = $weburgClient->isTorrentPopular(
245
                $movieInfo,