Code Duplication    Length = 11-11 lines in 3 locations

src/Client.php 3 locations

@@ 285-295 (lines=11) @@
282
     *
283
     * @return array
284
     */
285
    public function getItemDownloadUrl(string $itemId, bool $includeallversions = false):array
286
    {
287
        $parameters = $this->buildHttpQuery(
288
            [
289
                'includeallversions' => $includeallversions,
290
                'redirect'           => false,
291
            ]
292
        );
293
294
        return $this->get("Items({$itemId})/Download?{$parameters}");
295
    }
296
297
    /**
298
     * Get contents of and item.
@@ 305-315 (lines=11) @@
302
     *
303
     * @return mixed
304
     */
305
    public function getItemContents(string $itemId, bool $includeallversions = false)
306
    {
307
        $parameters = $this->buildHttpQuery(
308
            [
309
                'includeallversions' => $includeallversions,
310
                'redirect'           => true,
311
            ]
312
        );
313
314
        return $this->get("Items({$itemId})/Download?{$parameters}");
315
    }
316
317
    /**
318
     * Get the Chunk Uri to start a file-upload.
@@ 456-466 (lines=11) @@
453
     *
454
     * @return array
455
     */
456
    public function getThumbnailUrl(string $itemId, int $size = 75):array
457
    {
458
        $parameters = $this->buildHttpQuery(
459
            [
460
                'size'     => $size,
461
                'redirect' => false,
462
            ]
463
        );
464
465
        return $this->get("Items({$itemId})/Thumbnail?{$parameters}");
466
    }
467
468
    /**
469
     * Get browser link for an item.