Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5406-5419 (lines=14) @@
5403
     *
5404
     * @return bool
5405
     */
5406
    public function sizeIsGreaterThan(int $size): bool
5407
    {
5408
        // init
5409
        $itemsTempCount = 0;
5410
5411
        foreach ($this->getGenerator() as $key => $value) {
5412
            ++$itemsTempCount;
5413
            if ($itemsTempCount > $size) {
5414
                return true;
5415
            }
5416
        }
5417
5418
        return $itemsTempCount > $size;
5419
    }
5420
5421
    /**
5422
     * Checks whether array has less than $size items.
@@ 5428-5441 (lines=14) @@
5425
     *
5426
     * @return bool
5427
     */
5428
    public function sizeIsLessThan(int $size): bool
5429
    {
5430
        // init
5431
        $itemsTempCount = 0;
5432
5433
        foreach ($this->getGenerator() as $key => $value) {
5434
            ++$itemsTempCount;
5435
            if ($itemsTempCount > $size) {
5436
                return false;
5437
            }
5438
        }
5439
5440
        return $itemsTempCount < $size;
5441
    }
5442
5443
    /**
5444
     * Counts all elements in an array, or something in an object.