Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 5392-5405 (lines=14) @@
5389
     *
5390
     * @return bool
5391
     */
5392
    public function sizeIsGreaterThan(int $size): bool
5393
    {
5394
        // init
5395
        $itemsTempCount = 0;
5396
5397
        foreach ($this->getGenerator() as $key => $value) {
5398
            ++$itemsTempCount;
5399
            if ($itemsTempCount > $size) {
5400
                return true;
5401
            }
5402
        }
5403
5404
        return $itemsTempCount > $size;
5405
    }
5406
5407
    /**
5408
     * Checks whether array has less than $size items.
@@ 5414-5427 (lines=14) @@
5411
     *
5412
     * @return bool
5413
     */
5414
    public function sizeIsLessThan(int $size): bool
5415
    {
5416
        // init
5417
        $itemsTempCount = 0;
5418
5419
        foreach ($this->getGenerator() as $key => $value) {
5420
            ++$itemsTempCount;
5421
            if ($itemsTempCount > $size) {
5422
                return false;
5423
            }
5424
        }
5425
5426
        return $itemsTempCount < $size;
5427
    }
5428
5429
    /**
5430
     * Counts all elements in an array, or something in an object.