Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3723-3736 (lines=14) @@
3720
     * @return bool
3721
     *              <p>Returns true if associative, false otherwise.</p>
3722
     */
3723
    public function isAssoc(bool $recursive = false): bool
3724
    {
3725
        if ($this->isEmpty()) {
3726
            return false;
3727
        }
3728
3729
        /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */
3730
        foreach ($this->keys($recursive)->getGeneratorByReference() as &$key) {
3731
            if ((string) $key !== $key) {
3732
                return false;
3733
            }
3734
        }
3735
3736
        return true;
3737
    }
3738
3739
    /**
@@ 3811-3824 (lines=14) @@
3808
     * @return bool
3809
     *              <p>Returns true if numeric, false otherwise.</p>
3810
     */
3811
    public function isNumeric(): bool
3812
    {
3813
        if ($this->isEmpty()) {
3814
            return false;
3815
        }
3816
3817
        /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */
3818
        foreach ($this->keys()->getGeneratorByReference() as &$key) {
3819
            if ((int) $key !== $key) {
3820
                return false;
3821
            }
3822
        }
3823
3824
        return true;
3825
    }
3826
3827
    /**