Code Duplication    Length = 14-14 lines in 2 locations

src/Arrayy.php 2 locations

@@ 6169-6182 (lines=14) @@
6166
     *
6167
     * @return bool
6168
     */
6169
    public function sizeIsGreaterThan(int $size): bool
6170
    {
6171
        // init
6172
        $itemsTempCount = 0;
6173
6174
        foreach ($this->getGenerator() as $key => $value) {
6175
            ++$itemsTempCount;
6176
            if ($itemsTempCount > $size) {
6177
                return true;
6178
            }
6179
        }
6180
6181
        return $itemsTempCount > $size;
6182
    }
6183
6184
    /**
6185
     * Checks whether array has less than $size items.
@@ 6191-6204 (lines=14) @@
6188
     *
6189
     * @return bool
6190
     */
6191
    public function sizeIsLessThan(int $size): bool
6192
    {
6193
        // init
6194
        $itemsTempCount = 0;
6195
6196
        foreach ($this->getGenerator() as $key => $value) {
6197
            ++$itemsTempCount;
6198
            if ($itemsTempCount > $size) {
6199
                return false;
6200
            }
6201
        }
6202
6203
        return $itemsTempCount < $size;
6204
    }
6205
6206
    /**
6207
     * Counts all elements in an array, or something in an object.