Code Duplication    Length = 4-4 lines in 2 locations

lib/ApiClient/AbstractApiClient.php 2 locations

@@ 113-116 (lines=4) @@
110
            self::OPT_VIDEO_MANAGER_ID => $videoManagerId,
111
        ];
112
113
        if ($parameters) {
114
            $query = http_build_query($parameters->getContainer(), null, '&', PHP_QUERY_RFC3986);
115
            $options['query'] = preg_replace('/%5B[0-9]+%5D/simU', '%5B%5D', $query);
116
        }
117
118
        $response = $this->makeRequest('GET', 'videos', $options);
119
        $response = json_encode(json_decode($response->getBody()->getContents(), true)['videos']);
@@ 133-136 (lines=4) @@
130
            self::OPT_VIDEO_MANAGER_ID => $videoManagerId,
131
        ];
132
133
        if ($parameters) {
134
            $query = http_build_query($parameters->getContainer(), null, '&', PHP_QUERY_RFC3986);
135
            $options['query'] = preg_replace('/%5B[0-9]+%5D/simU', '%5B%5D', $query);
136
        }
137
138
        $response = $this->makeRequest('GET', 'videos', $options);
139