Code Duplication    Length = 8-8 lines in 5 locations

Controller/Client.php 5 locations

@@ 76-83 (lines=8) @@
73
     *
74
     * @return CharacterDataWrapper
75
     */
76
    public function getCharacter(int $id) : CharacterDataWrapper
77
    {
78
        $response = $this->call('characters/' . $id);
79
80
        $formattedResponse = $this->formatResponse($response, CharacterDataWrapper::class);
81
82
        return $formattedResponse;
83
    }
84
85
    /**
86
     * Fetches lists of comics containing a specific character, with optional filters.
@@ 193-200 (lines=8) @@
190
     *
191
     * @return CharacterDataWrapper
192
     */
193
    public function getCharactersForComic(int $id, CharacterFilter $characterFilter = null) : CharacterDataWrapper
194
    {
195
        $response = $this->call('comics/' . $id . '/characters', $characterFilter);
196
197
        $formattedResponse = $this->formatResponse($response, CharacterDataWrapper::class);
198
199
        return $formattedResponse;
200
    }
201
202
    /**
203
     * Fetches lists of comic creators whose work appears in a specific comic, with optional filters.
@@ 293-300 (lines=8) @@
290
     *
291
     * @return CharacterDataWrapper
292
     */
293
    public function getCharactersForEvent(int $id, CharacterFilter $characterFilter = null) : CharacterDataWrapper
294
    {
295
        $response = $this->call('events/' . $id . '/characters', $characterFilter);
296
297
        $formattedResponse = $this->formatResponse($response, CharacterDataWrapper::class);
298
299
        return $formattedResponse;
300
    }
301
302
    /**
303
     * Fetches lists of comics which take place during a specific event, with optional filters.
@@ 493-500 (lines=8) @@
490
     *
491
     * @return CharacterDataWrapper
492
     */
493
    public function getCharactersForSeries(int $id, CharacterFilter $characterFilter = null) : CharacterDataWrapper
494
    {
495
        $response = $this->call('series/' . $id . '/characters', $characterFilter);
496
497
        $formattedResponse = $this->formatResponse($response, CharacterDataWrapper::class);
498
499
        return $formattedResponse;
500
    }
501
502
    /**
503
     * Fetches lists of comics which are published as part of a specific series, with optional filters.
@@ 610-617 (lines=8) @@
607
     *
608
     * @return CharacterDataWrapper
609
     */
610
    public function getCharactersForStory(int $id, CharacterFilter $characterFilter = null) : CharacterDataWrapper
611
    {
612
        $response = $this->call('stories/' . $id . '/characters', $characterFilter);
613
614
        $formattedResponse = $this->formatResponse($response, CharacterDataWrapper::class);
615
616
        return $formattedResponse;
617
    }
618
619
    /**
620
     * Fetches lists of comics in which a specific story appears, with optional filters.