Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5999-6012 (lines=14) @@
5996
     *
5997
     * @return bool
5998
     */
5999
    public function sizeIsGreaterThan(int $size): bool
6000
    {
6001
        // init
6002
        $itemsTempCount = 0;
6003
6004
        foreach ($this->getGenerator() as $key => $value) {
6005
            ++$itemsTempCount;
6006
            if ($itemsTempCount > $size) {
6007
                return true;
6008
            }
6009
        }
6010
6011
        return $itemsTempCount > $size;
6012
    }
6013
6014
    /**
6015
     * Checks whether array has less than $size items.
@@ 6021-6034 (lines=14) @@
6018
     *
6019
     * @return bool
6020
     */
6021
    public function sizeIsLessThan(int $size): bool
6022
    {
6023
        // init
6024
        $itemsTempCount = 0;
6025
6026
        foreach ($this->getGenerator() as $key => $value) {
6027
            ++$itemsTempCount;
6028
            if ($itemsTempCount > $size) {
6029
                return false;
6030
            }
6031
        }
6032
6033
        return $itemsTempCount < $size;
6034
    }
6035
6036
    /**
6037
     * Counts all elements in an array, or something in an object.