Code Duplication    Length = 10-10 lines in 3 locations

lib/ApiClient/AbstractApiClient.php 3 locations

@@ 261-270 (lines=10) @@
258
    /**
259
     * {@inheritdoc}
260
     */
261
    public function getAttachments($videoManagerId, $videoId)
262
    {
263
        $response = $this->makeRequest(
264
            'GET',
265
            sprintf('videos/%s/attachments', $videoId),
266
            [self::OPT_VIDEO_MANAGER_ID => $videoManagerId]
267
        );
268
269
        return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Attachment::class.'>');
270
    }
271
272
    /**
273
     * {@inheritdoc}
@@ 275-284 (lines=10) @@
272
    /**
273
     * {@inheritdoc}
274
     */
275
    public function getChannelAttachments($videoManagerId, $channelId)
276
    {
277
        $response = $this->makeRequest(
278
            'GET',
279
            sprintf('channels/%s/attachments', $channelId),
280
            [self::OPT_VIDEO_MANAGER_ID => $videoManagerId]
281
        );
282
283
        return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Attachment::class.'>');
284
    }
285
286
    /**
287
     * {@inheritdoc}
@@ 289-298 (lines=10) @@
286
    /**
287
     * {@inheritdoc}
288
     */
289
    public function getKeywords($videoManagerId, $videoId)
290
    {
291
        $response = $this->makeRequest(
292
            'GET',
293
            sprintf('videos/%s/keywords', $videoId),
294
            [self::OPT_VIDEO_MANAGER_ID => $videoManagerId]
295
        );
296
297
        return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Keyword::class.'>');
298
    }
299
300
    /**
301
     * {@inheritdoc}