@@ -599,7 +599,7 @@ |
||
599 | 599 | * Optionally pass in an array by reference to get the list |
600 | 600 | * of characters read |
601 | 601 | * |
602 | - * @param array $characters |
|
602 | + * @param string[] $characters |
|
603 | 603 | * @param array $buffer |
604 | 604 | * @return string |
605 | 605 | * @throws \RuntimeException If there's an error reading the stream |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | $this->currentToken = null; |
171 | 171 | |
172 | - return (float)$this->stack->pop(); |
|
172 | + return (float) $this->stack->pop(); |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | /** |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | $this->currentToken = null; |
190 | 190 | |
191 | - return (int)$this->stack->pop(); |
|
191 | + return (int) $this->stack->pop(); |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function __construct(stdClass $class) |
31 | 31 | { |
32 | 32 | $this->queue = new SplQueue(); |
33 | - foreach(get_object_vars($class) as $key => $value) { |
|
33 | + foreach (get_object_vars($class) as $key => $value) { |
|
34 | 34 | $this->queue->enqueue([$key, $value]); |
35 | 35 | } |
36 | 36 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function __construct(JsonObject $jsonObject) |
31 | 31 | { |
32 | 32 | $this->queue = new SplQueue(); |
33 | - foreach($jsonObject as $key => $value) { |
|
33 | + foreach ($jsonObject as $key => $value) { |
|
34 | 34 | $this->queue->enqueue([$key, $value]); |
35 | 35 | } |
36 | 36 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | * @param string $version |
85 | 85 | * @return Excluder |
86 | 86 | */ |
87 | - public function setVersion(?string $version): Excluder |
|
87 | + public function setVersion(? string $version) : Excluder |
|
88 | 88 | { |
89 | 89 | $this->version = $version; |
90 | 90 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function createPropertyAnnotations(string $className, string $propertyName): AnnotationSet |
57 | 57 | { |
58 | - $key = $className.':'.$propertyName; |
|
58 | + $key = $className . ':' . $propertyName; |
|
59 | 59 | if ($this->cache->contains($key)) { |
60 | 60 | return $this->cache->fetch($key); |
61 | 61 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function createMethodAnnotations(string $className, string $methodName): AnnotationSet |
145 | 145 | { |
146 | - $key = $className.':'.$methodName; |
|
146 | + $key = $className . ':' . $methodName; |
|
147 | 147 | if ($this->cache->contains($key)) { |
148 | 148 | return $this->cache->fetch($key); |
149 | 149 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * @param string $name |
52 | 52 | * @return Property|null |
53 | 53 | */ |
54 | - public function getBySerializedName(string $name): ?Property |
|
54 | + public function getBySerializedName(string $name): ? Property |
|
55 | 55 | { |
56 | 56 | if (!array_key_exists($name, $this->elements)) { |
57 | 57 | return null; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * @param JsonReadable $reader |
25 | 25 | * @return mixed |
26 | 26 | */ |
27 | - public function read(JsonReadable $reader): ?bool |
|
27 | + public function read(JsonReadable $reader): ? bool |
|
28 | 28 | { |
29 | 29 | if ($reader->peek() === JsonToken::NULL) { |
30 | 30 | return $reader->nextNull(); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * @param JsonReadable $reader |
25 | 25 | * @return mixed |
26 | 26 | */ |
27 | - public function read(JsonReadable $reader): ?string |
|
27 | + public function read(JsonReadable $reader): ? string |
|
28 | 28 | { |
29 | 29 | if ($reader->peek() === JsonToken::NULL) { |
30 | 30 | return $reader->nextNull(); |