Code Duplication    Length = 11-11 lines in 2 locations

src/Traits/Sequence.php 2 locations

@@ 164-174 (lines=11) @@
161
    /**
162
     * @inheritDoc
163
     */
164
    public function pop()
165
    {
166
        if ($this->isEmpty()) {
167
            throw new UnderflowException();
168
        }
169
170
        $value = array_pop($this->internal);
171
        $this->adjustCapacity();
172
173
        return $value;
174
    }
175
176
    /**
177
     * @inheritDoc
@@ 261-271 (lines=11) @@
258
    /**
259
     * @inheritDoc
260
     */
261
    public function shift()
262
    {
263
        if ($this->isEmpty()) {
264
            throw new UnderflowException();
265
        }
266
267
        $value = array_shift($this->internal);
268
        $this->adjustCapacity();
269
270
        return $value;
271
    }
272
273
    /**
274
     * @inheritDoc