Code Duplication    Length = 3-3 lines in 2 locations

src/Tmdb.php 2 locations

@@ 202-204 (lines=3) @@
199
            foreach ($tData['genres'] ?? [] as $g) {
200
                $oTitle->genres[] = new Genre($g['id'], $g['name']);
201
            }
202
            foreach ($tData['production_companies'] ?? [] as $c) {
203
                $oTitle->productionCompanies[] = new Company($c['id'], $c['name']);
204
            }
205
            foreach ($tData['production_countries'] ?? [] as $g) {
206
                $oTitle->productionCountries[] = new Country($g['iso_3166_1'], $g['name']);
207
            }
@@ 281-283 (lines=3) @@
278
            foreach ($tData['networks'] ?? [] as $item) {
279
                $oTitle->networks[] = new Network($item['id'], $item['name']);
280
            }
281
            foreach ($tData['production_companies'] ?? [] as $item) {
282
                $oTitle->productionCompanies[] = new Company($item['id'], $item['name']);
283
            }
284
            foreach ($tData['seasons'] ?? [] as $item) {
285
                $oTitle->seasons[] = new Season(
286
                    $item['id'],