@@ -354,11 +354,11 @@ |
||
354 | 354 | $result = '$'; |
355 | 355 | foreach ($this->stack as $index => $item) { |
356 | 356 | if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) { |
357 | - $result .= '['.$this->pathIndices[$index].']'; |
|
357 | + $result .= '[' . $this->pathIndices[$index] . ']'; |
|
358 | 358 | } |
359 | 359 | |
360 | 360 | if ($item instanceof JsonObjectIterator && isset($this->pathNames[$index])) { |
361 | - $result .= '.'.$this->pathNames[$index]; |
|
361 | + $result .= '.' . $this->pathNames[$index]; |
|
362 | 362 | } |
363 | 363 | } |
364 | 364 |
@@ -149,7 +149,7 @@ |
||
149 | 149 | |
150 | 150 | $this->push($value); |
151 | 151 | |
152 | - return (string)$key; |
|
152 | + return (string) $key; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | { |
72 | 72 | $this->expect(JsonToken::BOOLEAN); |
73 | 73 | |
74 | - $result = (bool)$this->pop(); |
|
74 | + $result = (bool) $this->pop(); |
|
75 | 75 | |
76 | 76 | $this->incrementPathIndex(); |
77 | 77 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | { |
89 | 89 | $this->expect(JsonToken::NUMBER); |
90 | 90 | |
91 | - $result = (float)$this->pop(); |
|
91 | + $result = (float) $this->pop(); |
|
92 | 92 | |
93 | 93 | $this->incrementPathIndex(); |
94 | 94 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | { |
106 | 106 | $this->expect(JsonToken::NUMBER); |
107 | 107 | |
108 | - $result = (int)$this->pop(); |
|
108 | + $result = (int) $this->pop(); |
|
109 | 109 | |
110 | 110 | $this->incrementPathIndex(); |
111 | 111 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $this->expect(JsonToken::STRING); |
129 | 129 | |
130 | - $result = (string)$this->pop(); |
|
130 | + $result = (string) $this->pop(); |
|
131 | 131 | |
132 | 132 | $this->incrementPathIndex(); |
133 | 133 | |
@@ -211,11 +211,11 @@ discard block |
||
211 | 211 | $result = '$'; |
212 | 212 | foreach ($this->stack as $index => $item) { |
213 | 213 | if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) { |
214 | - $result .= '['.$this->pathIndices[$index].']'; |
|
214 | + $result .= '[' . $this->pathIndices[$index] . ']'; |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | if ($item instanceof StdClassIterator && isset($this->pathNames[$index])) { |
218 | - $result .= '.'.$this->pathNames[$index]; |
|
218 | + $result .= '.' . $this->pathNames[$index]; |
|
219 | 219 | } |
220 | 220 | } |
221 | 221 |