Code Duplication    Length = 15-16 lines in 2 locations

src/WorldOfWarcraft/CharacterProfileApi/CharacterProfileApi.php 2 locations

@@ 173-187 (lines=15) @@
170
     *
171
     * @return array
172
     */
173
    public function getFeed()
174
    {
175
        $requestModel = $this->prepareRequestModel('feed');
176
        $response = $this->requestService->doRequest($requestModel);
177
        $responseObject = json_decode($response);
178
179
        $feedObjectFactory = new FeedObjectFactory();
180
        $feedObj = [];
181
182
        foreach ($responseObject->feed as $feed) {
183
            $feedObj[] = $feedObjectFactory->getFeedObject($feed);
184
        }
185
186
        return $feedObj;
187
    }
188
189
    /**
190
     * A summary of the guild that the character belongs to
@@ 504-519 (lines=16) @@
501
     *
502
     * @return ReputationValueObject[]
503
     */
504
    public function getTitles()
505
    {
506
        $requestModel = $this->prepareRequestModel('titles');
507
        $response = $this->requestService->doRequest($requestModel);
508
        $responseObject = json_decode($response);
509
        $titles = [];
510
511
        foreach ($responseObject->titles as $title) {
512
            $titles[] = new TitleValueObject(
513
                $title->id,
514
                $title->name
515
            );
516
        }
517
518
        return $titles;
519
    }
520
521
    /**
522
     * @param string $addition