Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5900-5913 (lines=14) @@
5897
     *
5898
     * @return bool
5899
     */
5900
    public function sizeIsGreaterThan(int $size): bool
5901
    {
5902
        // init
5903
        $itemsTempCount = 0;
5904
5905
        foreach ($this->getGenerator() as $key => $value) {
5906
            ++$itemsTempCount;
5907
            if ($itemsTempCount > $size) {
5908
                return true;
5909
            }
5910
        }
5911
5912
        return $itemsTempCount > $size;
5913
    }
5914
5915
    /**
5916
     * Checks whether array has less than $size items.
@@ 5922-5935 (lines=14) @@
5919
     *
5920
     * @return bool
5921
     */
5922
    public function sizeIsLessThan(int $size): bool
5923
    {
5924
        // init
5925
        $itemsTempCount = 0;
5926
5927
        foreach ($this->getGenerator() as $key => $value) {
5928
            ++$itemsTempCount;
5929
            if ($itemsTempCount > $size) {
5930
                return false;
5931
            }
5932
        }
5933
5934
        return $itemsTempCount < $size;
5935
    }
5936
5937
    /**
5938
     * Counts all elements in an array, or something in an object.