Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 6170-6183 (lines=14) @@
6167
     *
6168
     * @return bool
6169
     */
6170
    public function sizeIsGreaterThan(int $size): bool
6171
    {
6172
        // init
6173
        $itemsTempCount = 0;
6174
6175
        foreach ($this->getGenerator() as $key => $value) {
6176
            ++$itemsTempCount;
6177
            if ($itemsTempCount > $size) {
6178
                return true;
6179
            }
6180
        }
6181
6182
        return $itemsTempCount > $size;
6183
    }
6184
6185
    /**
6186
     * Checks whether array has less than $size items.
@@ 6192-6205 (lines=14) @@
6189
     *
6190
     * @return bool
6191
     */
6192
    public function sizeIsLessThan(int $size): bool
6193
    {
6194
        // init
6195
        $itemsTempCount = 0;
6196
6197
        foreach ($this->getGenerator() as $key => $value) {
6198
            ++$itemsTempCount;
6199
            if ($itemsTempCount > $size) {
6200
                return false;
6201
            }
6202
        }
6203
6204
        return $itemsTempCount < $size;
6205
    }
6206
6207
    /**
6208
     * Counts all elements in an array, or something in an object.