Code Duplication    Length = 3-3 lines in 2 locations

src/Scraper/ClusterAppsScraper.php 1 location

@@ 39-41 (lines=3) @@
36
        $locale = parse_query($request->getUri()->getQuery())[GPlayApps::REQ_PARAM_LOCALE] ?? GPlayApps::DEFAULT_LOCALE;
37
38
        $apps = [];
39
        foreach ($scriptDataInfo[0][1][0][0][0] as $data) {
40
            $apps[] = AppsExtractor::extractApp($data, $locale);
41
        }
42
43
        $nextToken = $scriptDataInfo[0][1][0][0][7][1] ?? null;
44
        return [$apps, $nextToken];

src/Scraper/PlayStoreUiAppsScraper.php 1 location

@@ 35-37 (lines=3) @@
32
        $locale = parse_query($request->getUri()->getQuery())[GPlayApps::REQ_PARAM_LOCALE] ?? GPlayApps::DEFAULT_LOCALE;
33
34
        $apps = [];
35
        foreach ($json[0][0][0] as $data) {
36
            $apps[] = AppsExtractor::extractApp($data, $locale);
37
        }
38
39
        $nextToken = $json[0][0][7][1] ?? null;
40
        return [$apps, $nextToken];