Code Duplication    Length = 11-11 lines in 2 locations

src/Client.php 2 locations

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