Code Duplication    Length = 11-12 lines in 3 locations

src/Notifications.php 2 locations

@@ 103-114 (lines=12) @@
100
     *
101
     * @return array
102
     */
103
    public function open($id)
104
    {
105
        return $this->api->request('PUT', '/notifications/' . $id, [
106
            'headers' => [
107
                'Authorization' => 'Basic ' . $this->api->getConfig()->getApplicationAuthKey(),
108
            ],
109
            'json' => [
110
                'app_id' => $this->api->getConfig()->getApplicationId(),
111
                'opened' => true,
112
            ],
113
        ]);
114
    }
115
116
    /**
117
     * Cancel notification.
@@ 125-135 (lines=11) @@
122
     *
123
     * @return array
124
     */
125
    public function cancel($id)
126
    {
127
        return $this->api->request('DELETE', '/notifications/' . $id, [
128
            'headers' => [
129
                'Authorization' => 'Basic ' . $this->api->getConfig()->getApplicationAuthKey(),
130
            ],
131
            'json' => [
132
                'app_id' => $this->api->getConfig()->getApplicationId(),
133
            ],
134
        ]);
135
    }
136
137
    protected function resolve(array $data)
138
    {

src/Devices.php 1 location

@@ 219-229 (lines=11) @@
216
     *
217
     * @return array
218
     */
219
    public function csvExport()
220
    {
221
        return $this->api->request('POST', '/players/csv_export', [
222
            'headers' => [
223
                'Authorization' => 'Basic ' . $this->api->getConfig()->getApplicationAuthKey(),
224
            ],
225
            'json' => [
226
                'app_id' => $this->api->getConfig()->getApplicationId(),
227
            ],
228
        ]);
229
    }
230
231
    protected function resolve(array $data, callable $callback = null)
232
    {