Code Duplication    Length = 8-8 lines in 2 locations

src/Internal/JsonDecodeReader.php 1 location

@@ 361-368 (lines=8) @@
358
     *
359
     * @return mixed
360
     */
361
    private function pop()
362
    {
363
        $this->stackSize--;
364
        array_pop($this->stackTypes);
365
        $this->currentToken = null;
366
367
        return array_pop($this->stack);
368
    }
369
}
370

src/Internal/JsonElementReader.php 1 location

@@ 364-371 (lines=8) @@
361
     *
362
     * @return JsonElement|Iterator
363
     */
364
    private function pop()
365
    {
366
        $this->stackSize--;
367
        array_pop($this->stackTypes);
368
        $this->currentToken = null;
369
370
        return array_pop($this->stack);
371
    }
372
}
373