Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 6115-6128 (lines=14) @@
6112
     *
6113
     * @return bool
6114
     */
6115
    public function sizeIsGreaterThan(int $size): bool
6116
    {
6117
        // init
6118
        $itemsTempCount = 0;
6119
6120
        foreach ($this->getGenerator() as $key => $value) {
6121
            ++$itemsTempCount;
6122
            if ($itemsTempCount > $size) {
6123
                return true;
6124
            }
6125
        }
6126
6127
        return $itemsTempCount > $size;
6128
    }
6129
6130
    /**
6131
     * Checks whether array has less than $size items.
@@ 6137-6150 (lines=14) @@
6134
     *
6135
     * @return bool
6136
     */
6137
    public function sizeIsLessThan(int $size): bool
6138
    {
6139
        // init
6140
        $itemsTempCount = 0;
6141
6142
        foreach ($this->getGenerator() as $key => $value) {
6143
            ++$itemsTempCount;
6144
            if ($itemsTempCount > $size) {
6145
                return false;
6146
            }
6147
        }
6148
6149
        return $itemsTempCount < $size;
6150
    }
6151
6152
    /**
6153
     * Counts all elements in an array, or something in an object.