Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5283-5296 (lines=14) @@
5280
     *
5281
     * @return bool
5282
     */
5283
    public function sizeIsGreaterThan(int $size): bool
5284
    {
5285
        // init
5286
        $itemsTempCount = 0;
5287
5288
        foreach ($this->getGenerator() as $key => $value) {
5289
            ++$itemsTempCount;
5290
            if ($itemsTempCount > $size) {
5291
                return true;
5292
            }
5293
        }
5294
5295
        return $itemsTempCount > $size;
5296
    }
5297
5298
    /**
5299
     * Checks whether array has less than $size items.
@@ 5305-5318 (lines=14) @@
5302
     *
5303
     * @return bool
5304
     */
5305
    public function sizeIsLessThan(int $size): bool
5306
    {
5307
        // init
5308
        $itemsTempCount = 0;
5309
5310
        foreach ($this->getGenerator() as $key => $value) {
5311
            ++$itemsTempCount;
5312
            if ($itemsTempCount > $size) {
5313
                return false;
5314
            }
5315
        }
5316
5317
        return $itemsTempCount < $size;
5318
    }
5319
5320
    /**
5321
     * Counts all elements in an array, or something in an object.