Code Duplication    Length = 8-8 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2419-2426 (lines=8) @@
2416
     *
2417
     * @return mixed
2418
     */
2419
    public function max()
2420
    {
2421
        if (\count($this->getArray(), \COUNT_NORMAL) === 0) {
2422
            return false;
2423
        }
2424
2425
        return \max($this->getArray());
2426
    }
2427
2428
    /**
2429
     * Merge the new $array into the current array.
@@ 2531-2538 (lines=8) @@
2528
     *
2529
     * @return mixed
2530
     */
2531
    public function min()
2532
    {
2533
        if (\count($this->getArray(), \COUNT_NORMAL) === 0) {
2534
            return false;
2535
        }
2536
2537
        return \min($this->getArray());
2538
    }
2539
2540
    /**
2541
     * Move an array element to a new index.