Code Duplication    Length = 10-10 lines in 3 locations

lib/ApiClient/AbstractApiClient.php 3 locations

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