Code Duplication    Length = 10-10 lines in 2 locations

lib/ApiClient/AbstractApiClient.php 2 locations

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