@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping\Factory; |
7 | 7 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping\Factory; |
7 | 7 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | // remove namespace separators from remaining class name |
39 | 39 | $fileName = str_replace('\\', '', $classNameRelativeToMetadataNamespace); |
40 | 40 | |
41 | - return $metadataDir . DIRECTORY_SEPARATOR . $fileName . '.php'; |
|
41 | + return $metadataDir.DIRECTORY_SEPARATOR.$fileName.'.php'; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $metadataNamespace = ltrim($metadataNamespace, '\\'); |
62 | 62 | |
63 | - if (! (null === $notFoundCallback || is_callable($notFoundCallback))) { |
|
63 | + if ( ! (null === $notFoundCallback || is_callable($notFoundCallback))) { |
|
64 | 64 | $type = is_object($notFoundCallback) ? get_class($notFoundCallback) : gettype($notFoundCallback); |
65 | 65 | |
66 | 66 | throw new InvalidArgumentException( |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ); |
69 | 69 | } |
70 | 70 | |
71 | - $autoloader = function ($className) use ($metadataDir, $metadataNamespace, $notFoundCallback) { |
|
71 | + $autoloader = function($className) use ($metadataDir, $metadataNamespace, $notFoundCallback) { |
|
72 | 72 | if (0 === strpos($className, $metadataNamespace)) { |
73 | 73 | $file = Autoloader::resolveFile($metadataDir, $metadataNamespace, $className); |
74 | 74 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping\Factory; |
7 | 7 | |
@@ -179,9 +179,9 @@ discard block |
||
179 | 179 | * |
180 | 180 | * @return ClassMetadataDefinition |
181 | 181 | */ |
182 | - private function getOrCreateClassMetadataDefinition(string $className, ?ClassMetadata $parent) : ClassMetadataDefinition |
|
182 | + private function getOrCreateClassMetadataDefinition(string $className, ? ClassMetadata $parent) : ClassMetadataDefinition |
|
183 | 183 | { |
184 | - if (! isset($this->definitions[$className])) { |
|
184 | + if ( ! isset($this->definitions[$className])) { |
|
185 | 185 | $this->definitions[$className] = $this->definitionFactory->build($className, $parent); |
186 | 186 | } |
187 | 187 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping\Factory; |
7 | 7 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | protected function getReflectionService() : StaticReflectionService |
28 | 28 | { |
29 | - if (! $this->reflectionService) { |
|
29 | + if ( ! $this->reflectionService) { |
|
30 | 30 | $this->reflectionService = new StaticReflectionService(); |
31 | 31 | } |
32 | 32 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping; |
6 | 6 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 | |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | return $this->valueGenerator !== null; |
81 | 81 | } |
82 | 82 | |
83 | - public function getValueGenerator(): ?ValueGeneratorMetadata |
|
83 | + public function getValueGenerator(): ? ValueGeneratorMetadata |
|
84 | 84 | { |
85 | 85 | return $this->valueGenerator; |
86 | 86 | } |
87 | 87 | |
88 | - public function setValueGenerator(?ValueGeneratorMetadata $valueGenerator): void |
|
88 | + public function setValueGenerator(? ValueGeneratorMetadata $valueGenerator) : void |
|
89 | 89 | { |
90 | 90 | $this->valueGenerator = $valueGenerator; |
91 | 91 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping; |
6 | 6 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 |