Code Duplication    Length = 5-5 lines in 2 locations

src/Command/WeburgDownload.php 2 locations

@@ 181-185 (lines=5) @@
178
        }
179
180
        $movieInfo = $weburgClient->getMovieInfoById($movieId);
181
        foreach (array_keys($movieInfo) as $infoField) {
182
            if (!isset($movieInfo[$infoField])) {
183
                $logger->warning('Cannot find ' . $infoField . ' in movie ' . $movieId);
184
            }
185
        }
186
187
        $movieUrls = $weburgClient->getMovieTorrentUrlsById($movieId);
188
        $torrentsUrls = array_merge($torrentsUrls, $movieUrls);
@@ 225-229 (lines=5) @@
222
            }
223
224
            $movieInfo = $weburgClient->getMovieInfoById($movieId);
225
            foreach (array_keys($movieInfo) as $infoField) {
226
                if (!isset($movieInfo[$infoField])) {
227
                    $logger->warning('Cannot find ' . $infoField . ' in movie ' . $movieId);
228
                }
229
            }
230
231
            $isTorrentPopular = $weburgClient->isTorrentPopular(
232
                $movieInfo,