Code Duplication    Length = 15-16 lines in 2 locations

src/WorldOfWarcraft/CharacterProfileApi/CharacterProfileApi.php 2 locations

@@ 175-189 (lines=15) @@
172
     *
173
     * @return array
174
     */
175
    public function getFeed()
176
    {
177
        $requestModel = $this->prepareRequestModel('feed');
178
        $response = $this->requestService->doRequest($requestModel);
179
        $responseObject = json_decode($response);
180
181
        $feedObjectFactory = new FeedObjectFactory();
182
        $feedObj = [];
183
184
        foreach ($responseObject->feed as $feed) {
185
            $feedObj[] = $feedObjectFactory->getFeedObject($feed);
186
        }
187
188
        return $feedObj;
189
    }
190
191
    /**
192
     * A summary of the guild that the character belongs to
@@ 523-538 (lines=16) @@
520
     *
521
     * @return ReputationValueObject[]
522
     */
523
    public function getTitles()
524
    {
525
        $requestModel = $this->prepareRequestModel('titles');
526
        $response = $this->requestService->doRequest($requestModel);
527
        $responseObject = json_decode($response);
528
        $titles = [];
529
530
        foreach ($responseObject->titles as $title) {
531
            $titles[] = new TitleValueObject(
532
                $title->id,
533
                $title->name
534
            );
535
        }
536
537
        return $titles;
538
    }
539
540
    /**
541
     * @param string $addition