Code Duplication    Length = 11-11 lines in 2 locations

src/phpFastCache/Core/Item/ItemExtendedTrait.php 2 locations

@@ 160-170 (lines=11) @@
157
     * @return $this
158
     * @throws \InvalidArgumentException
159
     */
160
    public function increment($step = 1)
161
    {
162
        if (is_int($step)) {
163
            $this->fetched = true;
164
            $this->data += $step;
165
        } else {
166
            throw new \InvalidArgumentException('$step must be numeric.');
167
        }
168
169
        return $this;
170
    }
171
172
    /**
173
     * @param int $step
@@ 177-187 (lines=11) @@
174
     * @return $this
175
     * @throws \InvalidArgumentException
176
     */
177
    public function decrement($step = 1)
178
    {
179
        if (is_int($step)) {
180
            $this->fetched = true;
181
            $this->data -= $step;
182
        } else {
183
            throw new \InvalidArgumentException('$step must be numeric.');
184
        }
185
186
        return $this;
187
    }
188
189
    /**
190
     * @param array|string $data