Code Duplication    Length = 12-12 lines in 2 locations

src/WorldOfWarcraft/AchievementApi/AchievementApi.php 1 location

@@ 78-89 (lines=12) @@
75
     *
76
     * @return RequestModel
77
     */
78
    private function prepareRequestModel($field)
79
    {
80
        return new RequestModel(
81
            $this->authenticationModel->getRegion(),
82
            $this->authenticationModel->getApiKey(),
83
            $this->authenticationModel->getLocale(),
84
            [$field],
85
            'achievement',
86
            Franchises::WORLD_OF_WARCRAFT,
87
            ''
88
        );
89
    }
90
91
    /**
92
     * @param string $field

src/WorldOfWarcraft/AuctionApi/AuctionApi.php 1 location

@@ 64-75 (lines=12) @@
61
     *
62
     * @return RequestModel
63
     */
64
    private function prepareRequestModel($field)
65
    {
66
        return new RequestModel(
67
            $this->authenticationModel->getRegion(),
68
            $this->authenticationModel->getApiKey(),
69
            $this->authenticationModel->getLocale(),
70
            ['data', $field],
71
            'auction',
72
            Franchises::WORLD_OF_WARCRAFT,
73
            ''
74
        );
75
    }
76
77
    /**
78
     * @param string $field