Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

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