Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5884-5897 (lines=14) @@
5881
     *
5882
     * @return bool
5883
     */
5884
    public function sizeIsGreaterThan(int $size): bool
5885
    {
5886
        // init
5887
        $itemsTempCount = 0;
5888
5889
        foreach ($this->getGenerator() as $key => $value) {
5890
            ++$itemsTempCount;
5891
            if ($itemsTempCount > $size) {
5892
                return true;
5893
            }
5894
        }
5895
5896
        return $itemsTempCount > $size;
5897
    }
5898
5899
    /**
5900
     * Checks whether array has less than $size items.
@@ 5906-5919 (lines=14) @@
5903
     *
5904
     * @return bool
5905
     */
5906
    public function sizeIsLessThan(int $size): bool
5907
    {
5908
        // init
5909
        $itemsTempCount = 0;
5910
5911
        foreach ($this->getGenerator() as $key => $value) {
5912
            ++$itemsTempCount;
5913
            if ($itemsTempCount > $size) {
5914
                return false;
5915
            }
5916
        }
5917
5918
        return $itemsTempCount < $size;
5919
    }
5920
5921
    /**
5922
     * Counts all elements in an array, or something in an object.