@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson\Annotation; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson\Annotation; |
| 10 | 10 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @return string |
| 64 | 64 | */ |
| 65 | - public function getter(): ?string |
|
| 65 | + public function getter(): ? string |
|
| 66 | 66 | { |
| 67 | 67 | return $this->get; |
| 68 | 68 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @return string |
| 74 | 74 | */ |
| 75 | - public function setter(): ?string |
|
| 75 | + public function setter(): ? string |
|
| 76 | 76 | { |
| 77 | 77 | return $this->set; |
| 78 | 78 | } |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson; |
| 10 | 10 | |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | */ |
| 334 | 334 | public function setCacheDir(string $cacheDir): GsonBuilder |
| 335 | 335 | { |
| 336 | - $this->cacheDir = $cacheDir.'/gson'; |
|
| 336 | + $this->cacheDir = $cacheDir . '/gson'; |
|
| 337 | 337 | |
| 338 | 338 | return $this; |
| 339 | 339 | } |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | $propertyNamingStrategy = $this->propertyNamingStrategy ?? new SnakePropertyNamingStrategy(); |
| 356 | 356 | $methodNamingStrategy = $this->methodNamingStrategy ?? new UpperCaseMethodNamingStrategy(); |
| 357 | 357 | |
| 358 | - $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
| 358 | + $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]); |
|
| 359 | 359 | $doctrineAnnotationCache->setNamespace('doctrine_annotation_cache'); |
| 360 | 360 | $reader = new CachedReader(new AnnotationReader(), $doctrineAnnotationCache); |
| 361 | 361 | |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * Distributed under the MIT License (http://opensource.org/licenses/MIT) |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Tebru\Gson; |
| 10 | 10 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param string $annotationClass |
| 42 | 42 | * @return null|AbstractAnnotation |
| 43 | 43 | */ |
| 44 | - public function getAnnotation(string $annotationClass): ?AbstractAnnotation; |
|
| 44 | + public function getAnnotation(string $annotationClass): ? AbstractAnnotation; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Returns an array of [@see PropertyMetadata] objects |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @param string $propertyName |
| 57 | 57 | * @return PropertyMetadata|null |
| 58 | 58 | */ |
| 59 | - public function getProperty(string $propertyName): ?PropertyMetadata; |
|
| 59 | + public function getProperty(string $propertyName): ? PropertyMetadata; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * Add [@see PropertyMetadata] link |