Code Duplication    Length = 11-11 lines in 2 locations

src/Traits/Sequence.php 2 locations

@@ 163-173 (lines=11) @@
160
    /**
161
     * @inheritDoc
162
     */
163
    public function pop()
164
    {
165
        if ($this->isEmpty()) {
166
            throw new UnderflowException();
167
        }
168
169
        $value = array_pop($this->internal);
170
        $this->adjustCapacity();
171
172
        return $value;
173
    }
174
175
    /**
176
     * @inheritDoc
@@ 269-279 (lines=11) @@
266
    /**
267
     * @inheritDoc
268
     */
269
    public function shift()
270
    {
271
        if ($this->isEmpty()) {
272
            throw new UnderflowException();
273
        }
274
275
        $value = array_shift($this->internal);
276
        $this->adjustCapacity();
277
278
        return $value;
279
    }
280
281
    /**
282
     * @inheritDoc