Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

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