Code Duplication    Length = 8-8 lines in 7 locations

Controller/Client.php 7 locations

@@ 210-217 (lines=8) @@
207
     *
208
     * @return CreatorDataWrapper
209
     */
210
    public function getCreatorsForComics(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper
211
    {
212
        $response = $this->call('comics/' . $id . '/creators', $creatorFilter);
213
214
        $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class);
215
216
        return $formattedResponse;
217
    }
218
219
    /**
220
     * Fetches lists of events in which a specific comic appears, with optional filters.
@@ 327-334 (lines=8) @@
324
     *
325
     * @return CreatorDataWrapper
326
     */
327
    public function getCreatorsForEvent(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper
328
    {
329
        $response = $this->call('events/' . $id . '/creators', $creatorFilter);
330
331
        $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class);
332
333
        return $formattedResponse;
334
    }
335
336
    /**
337
     * Fetches lists of comic series in which a specific event takes place, with optional filters.
@@ 377-384 (lines=8) @@
374
     *
375
     * @return CreatorDataWrapper
376
     */
377
    public function getCreators(CreatorFilter $creatorFilter = null) : CreatorDataWrapper
378
    {
379
        $response = $this->call('creators', $creatorFilter);
380
381
        $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class);
382
383
        return $formattedResponse;
384
    }
385
386
    /**
387
     * This method fetches a single creator resource.
@@ 393-400 (lines=8) @@
390
     *
391
     * @return CreatorDataWrapper
392
     */
393
    public function getCreator(int $id) : CreatorDataWrapper
394
    {
395
        $response = $this->call('creators/' . $id);
396
397
        $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class);
398
399
        return $formattedResponse;
400
    }
401
402
    /**
403
     * Fetches lists of events featuring the work of a specific creator with optional filters.
@@ 410-417 (lines=8) @@
407
     *
408
     * @return CreatorDataWrapper
409
     */
410
    public function getComicsForCreator(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper
411
    {
412
        $response = $this->call('creators/' . $id . '/comics', $creatorFilter);
413
414
        $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class);
415
416
        return $formattedResponse;
417
    }
418
419
    /**
420
     * Fetches lists of comic series in which a specific creator's work appears, with optional filters.
@@ 527-534 (lines=8) @@
524
     *
525
     * @return CreatorDataWrapper
526
     */
527
    public function getCreatorsForSeries(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper
528
    {
529
        $response = $this->call('series/' . $id . '/creators', $creatorFilter);
530
531
        $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class);
532
533
        return $formattedResponse;
534
    }
535
536
    /**
537
     * Fetches lists of events which occur in a specific series, with optional filters.
@@ 644-651 (lines=8) @@
641
     *
642
     * @return CreatorDataWrapper
643
     */
644
    public function getCreatorsForStory(int $id, CreatorFilter $creatorFilter = null) : CreatorDataWrapper
645
    {
646
        $response = $this->call('stories/' . $id . '/creators', $creatorFilter);
647
648
        $formattedResponse = $this->formatResponse($response, CreatorDataWrapper::class);
649
650
        return $formattedResponse;
651
    }
652
653
    /**
654
     * Fetches lists of events in which a specific story appears, with optional filters.