Code Duplication    Length = 11-11 lines in 2 locations

src/Client.php 2 locations

@@ 240-250 (lines=11) @@
237
     *
238
     * @return array
239
     */
240
    public function updateItem(string $itemId, array $data, bool $forceSync = true, bool $notify = true):array
241
    {
242
        $parameters = $this->buildHttpQuery(
243
            [
244
                'forceSync' => $forceSync,
245
                'notify'    => $notify,
246
            ]
247
        );
248
249
        return $this->patch("Items({$itemId})?{$parameters}", $data);
250
    }
251
252
    /**
253
     * Delete an item.
@@ 261-271 (lines=11) @@
258
     *
259
     * @return array
260
     */
261
    public function deleteItem(string $itemId, bool $singleversion = false, bool $forceSync = false):array
262
    {
263
        $parameters = $this->buildHttpQuery(
264
            [
265
                'singleversion' => $singleversion,
266
                'forceSync'     => $forceSync,
267
            ]
268
        );
269
270
        return $this->delete("Items({$itemId})?{$parameters}");
271
    }
272
273
    /**
274
     * Get temporary download URL for an item.