Code Duplication    Length = 12-12 lines in 2 locations

src/Query/QueryBuilder.php 2 locations

@@ 370-381 (lines=12) @@
367
    /**
368
     * {@inheritdoc}
369
     */
370
    public function increment($column, $amount = 1, array $extra = [])
371
    {
372
        if (!is_numeric($amount)) {
373
            throw new \InvalidArgumentException('Non-numeric value passed to increment method.');
374
        }
375
376
        $wrapped = $this->prepareColumn($column);
377
378
        $columns = array_merge([$column => $this->raw("$wrapped + $amount")], $extra);
379
380
        return $this->update($columns);
381
    }
382
383
    /**
384
     * {@inheritdoc}
@@ 386-397 (lines=12) @@
383
    /**
384
     * {@inheritdoc}
385
     */
386
    public function decrement($column, $amount = 1, array $extra = [])
387
    {
388
        if (!is_numeric($amount)) {
389
            throw new \InvalidArgumentException('Non-numeric value passed to decrement method.');
390
        }
391
392
        $wrapped = $this->prepareColumn($column);
393
394
        $columns = array_merge([$column => $this->raw("$wrapped - $amount")], $extra);
395
396
        return $this->update($columns);
397
    }
398
399
    /**
400
     * {@inheritdoc}