Code Duplication    Length = 14-16 lines in 2 locations

lib/ApiClient/AbstractApiClient.php 2 locations

@@ 290-303 (lines=14) @@
287
    /**
288
     * {@inheritdoc}
289
     */
290
    public function getKeywords($videoManagerId, $videoId)
291
    {
292
        $uri = is_null($videoId)
293
            ? 'keyword/find'
294
            : sprintf('videos/%s/keywords', $videoId);
295
296
        $response = $this->makeRequest(
297
            'GET',
298
            $uri,
299
            [self::OPT_VIDEO_MANAGER_ID => $videoManagerId]
300
        );
301
302
        return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Keyword::class.'>');
303
    }
304
305
    /**
306
     * {@inheritdoc}
@@ 382-397 (lines=16) @@
379
    /**
380
     * {@inheritdoc}
381
     */
382
    public function getVideoDownloadUrls($videoManagerId, $videoId)
383
    {
384
        $options = [
385
            self::OPT_VIDEO_MANAGER_ID => $videoManagerId,
386
        ];
387
388
        $response = $this->makeRequest(
389
            'GET',
390
            sprintf('videos/%s/download-urls', $videoId),
391
            $options
392
        );
393
394
        $response = $response->getBody()->getContents();
395
396
        return $this->deserialize($response, 'ArrayCollection<'.VideoDownloadUrl::class.'>');
397
    }
398
399
    /**
400
     * {@inheritdoc}