Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5985-5998 (lines=14) @@
5982
     *
5983
     * @return bool
5984
     */
5985
    public function sizeIsGreaterThan(int $size): bool
5986
    {
5987
        // init
5988
        $itemsTempCount = 0;
5989
5990
        foreach ($this->getGenerator() as $key => $value) {
5991
            ++$itemsTempCount;
5992
            if ($itemsTempCount > $size) {
5993
                return true;
5994
            }
5995
        }
5996
5997
        return $itemsTempCount > $size;
5998
    }
5999
6000
    /**
6001
     * Checks whether array has less than $size items.
@@ 6007-6020 (lines=14) @@
6004
     *
6005
     * @return bool
6006
     */
6007
    public function sizeIsLessThan(int $size): bool
6008
    {
6009
        // init
6010
        $itemsTempCount = 0;
6011
6012
        foreach ($this->getGenerator() as $key => $value) {
6013
            ++$itemsTempCount;
6014
            if ($itemsTempCount > $size) {
6015
                return false;
6016
            }
6017
        }
6018
6019
        return $itemsTempCount < $size;
6020
    }
6021
6022
    /**
6023
     * Counts all elements in an array, or something in an object.