Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

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