Code Duplication    Length = 11-11 lines in 2 locations

src/Ds/Traits/Sequence.php 2 locations

@@ 281-291 (lines=11) @@
278
    /**
279
     * @inheritDoc
280
     */
281
    public function shift()
282
    {
283
        if ($this->isEmpty()) {
284
            throw new UnderflowException();
285
        }
286
287
        $value = array_shift($this->internal);
288
        $this->adjustCapacity();
289
290
        return $value;
291
    }
292
293
    /**
294
     * @inheritDoc
@@ 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