Code Duplication    Length = 11-11 lines in 2 locations

src/Client.php 2 locations

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