Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 3731-3744 (lines=14) @@
3728
     * @return bool
3729
     *              <p>Returns true if associative, false otherwise.</p>
3730
     */
3731
    public function isAssoc(bool $recursive = false): bool
3732
    {
3733
        if ($this->isEmpty()) {
3734
            return false;
3735
        }
3736
3737
        /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */
3738
        foreach ($this->keys($recursive)->getGeneratorByReference() as &$key) {
3739
            if ((string) $key !== $key) {
3740
                return false;
3741
            }
3742
        }
3743
3744
        return true;
3745
    }
3746
3747
    /**
@@ 3819-3832 (lines=14) @@
3816
     * @return bool
3817
     *              <p>Returns true if numeric, false otherwise.</p>
3818
     */
3819
    public function isNumeric(): bool
3820
    {
3821
        if ($this->isEmpty()) {
3822
            return false;
3823
        }
3824
3825
        /** @noinspection PhpParameterByRefIsNotUsedAsReferenceInspection */
3826
        foreach ($this->keys()->getGeneratorByReference() as &$key) {
3827
            if ((int) $key !== $key) {
3828
                return false;
3829
            }
3830
        }
3831
3832
        return true;
3833
    }
3834
3835
    /**