Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 6035-6048 (lines=14) @@
6032
     *
6033
     * @return bool
6034
     */
6035
    public function sizeIsGreaterThan(int $size): bool
6036
    {
6037
        // init
6038
        $itemsTempCount = 0;
6039
6040
        foreach ($this->getGenerator() as $key => $value) {
6041
            ++$itemsTempCount;
6042
            if ($itemsTempCount > $size) {
6043
                return true;
6044
            }
6045
        }
6046
6047
        return $itemsTempCount > $size;
6048
    }
6049
6050
    /**
6051
     * Checks whether array has less than $size items.
@@ 6057-6070 (lines=14) @@
6054
     *
6055
     * @return bool
6056
     */
6057
    public function sizeIsLessThan(int $size): bool
6058
    {
6059
        // init
6060
        $itemsTempCount = 0;
6061
6062
        foreach ($this->getGenerator() as $key => $value) {
6063
            ++$itemsTempCount;
6064
            if ($itemsTempCount > $size) {
6065
                return false;
6066
            }
6067
        }
6068
6069
        return $itemsTempCount < $size;
6070
    }
6071
6072
    /**
6073
     * Counts all elements in an array, or something in an object.