Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5421-5434 (lines=14) @@
5418
     *
5419
     * @return bool
5420
     */
5421
    public function sizeIsGreaterThan(int $size): bool
5422
    {
5423
        // init
5424
        $itemsTempCount = 0;
5425
5426
        foreach ($this->getGenerator() as $key => $value) {
5427
            ++$itemsTempCount;
5428
            if ($itemsTempCount > $size) {
5429
                return true;
5430
            }
5431
        }
5432
5433
        return $itemsTempCount > $size;
5434
    }
5435
5436
    /**
5437
     * Checks whether array has less than $size items.
@@ 5443-5456 (lines=14) @@
5440
     *
5441
     * @return bool
5442
     */
5443
    public function sizeIsLessThan(int $size): bool
5444
    {
5445
        // init
5446
        $itemsTempCount = 0;
5447
5448
        foreach ($this->getGenerator() as $key => $value) {
5449
            ++$itemsTempCount;
5450
            if ($itemsTempCount > $size) {
5451
                return false;
5452
            }
5453
        }
5454
5455
        return $itemsTempCount < $size;
5456
    }
5457
5458
    /**
5459
     * Counts all elements in an array, or something in an object.