@@ -94,6 +94,7 @@ |
||
94 | 94 | * Sets whether nulls are serialized |
95 | 95 | * |
96 | 96 | * @param bool $serializeNull |
97 | + * @return void |
|
97 | 98 | */ |
98 | 99 | public function setSerializeNull(bool $serializeNull): void; |
99 | 100 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * |
199 | 199 | * @return string |
200 | 200 | */ |
201 | - public function getClass(): ?string |
|
201 | + public function getClass(): ? string |
|
202 | 202 | { |
203 | 203 | return $this->class; |
204 | 204 | } |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | { |
325 | 325 | return [] === $this->options |
326 | 326 | ? $this->fullType |
327 | - : $this->fullType.serialize($this->options); |
|
327 | + : $this->fullType . serialize($this->options); |
|
328 | 328 | } |
329 | 329 | |
330 | 330 | /** |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | */ |
315 | 315 | public function setCacheDir(string $cacheDir): GsonBuilder |
316 | 316 | { |
317 | - $this->cacheDir = $cacheDir.'/gson'; |
|
317 | + $this->cacheDir = $cacheDir . '/gson'; |
|
318 | 318 | |
319 | 319 | return $this; |
320 | 320 | } |
@@ -335,14 +335,14 @@ discard block |
||
335 | 335 | $propertyNamingStrategy = $this->propertyNamingStrategy ?? new SnakePropertyNamingStrategy(); |
336 | 336 | $methodNamingStrategy = $this->methodNamingStrategy ?? new UpperCaseMethodNamingStrategy(); |
337 | 337 | |
338 | - $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
338 | + $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
339 | 339 | $doctrineAnnotationCache->setNamespace('doctrine_annotation_cache'); |
340 | 340 | $reader = new CachedReader(new AnnotationReader(), $doctrineAnnotationCache); |
341 | 341 | |
342 | 342 | $cache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
343 | 343 | $cache->setNamespace('property_collection_cache'); |
344 | 344 | |
345 | - $annotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
345 | + $annotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
346 | 346 | $annotationCache->setNamespace('annotation_cache'); |
347 | 347 | |
348 | 348 | $typeAdapterCache = new ArrayCache(); |