Code Duplication    Length = 6-6 lines in 2 locations

src/Internal/JsonDecodeReader.php 2 locations

@@ 52-57 (lines=6) @@
49
        $type = \gettype($decodedJson);
50
51
        switch ($type) {
52
            case 'object':
53
                $this->stack[$this->stackSize] = null;
54
                $this->stackTypes[$this->stackSize++] = JsonToken::END_OBJECT;
55
                $this->stack[$this->stackSize] = $decodedJson;
56
                $this->stackTypes[$this->stackSize++] = JsonToken::BEGIN_OBJECT;
57
                break;
58
            case 'array':
59
                $this->stack[$this->stackSize] = null;
60
                $this->stackTypes[$this->stackSize++] = JsonToken::END_ARRAY;
@@ 58-63 (lines=6) @@
55
                $this->stack[$this->stackSize] = $decodedJson;
56
                $this->stackTypes[$this->stackSize++] = JsonToken::BEGIN_OBJECT;
57
                break;
58
            case 'array':
59
                $this->stack[$this->stackSize] = null;
60
                $this->stackTypes[$this->stackSize++] = JsonToken::END_ARRAY;
61
                $this->stack[$this->stackSize] = $decodedJson;
62
                $this->stackTypes[$this->stackSize++] = JsonToken::BEGIN_ARRAY;
63
                break;
64
            case 'string':
65
                $this->stack[$this->stackSize] = $decodedJson;
66
                $this->stackTypes[$this->stackSize++] = JsonToken::STRING;