@@ -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 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function joinColumnName($propertyName, $className = null) |
58 | 58 | { |
59 | - return $propertyName . '_' . $this->referenceColumnName(); |
|
59 | + return $propertyName.'_'.$this->referenceColumnName(); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function joinTableName($sourceEntity, $targetEntity, $propertyName = null) |
66 | 66 | { |
67 | - return strtolower($this->classToTableName($sourceEntity) . '_' . |
|
67 | + return strtolower($this->classToTableName($sourceEntity).'_'. |
|
68 | 68 | $this->classToTableName($targetEntity)); |
69 | 69 | } |
70 | 70 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function joinKeyColumnName($entityName, $referencedColumnName = null) |
75 | 75 | { |
76 | - return strtolower($this->classToTableName($entityName) . '_' . |
|
76 | + return strtolower($this->classToTableName($entityName).'_'. |
|
77 | 77 | ($referencedColumnName ?: $this->referenceColumnName())); |
78 | 78 | } |
79 | 79 | } |
@@ -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() : RuntimeReflectionService |
28 | 28 | { |
29 | - if (! $this->reflectionService) { |
|
29 | + if ( ! $this->reflectionService) { |
|
30 | 30 | $this->reflectionService = new RuntimeReflectionService(); |
31 | 31 | } |
32 | 32 |
@@ -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 | |
@@ -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 @@ discard block |
||
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 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | // If $value is not a Collection then use an ArrayCollection. |
70 | - if (! $collection instanceof Collection) { |
|
70 | + if ( ! $collection instanceof Collection) { |
|
71 | 71 | // @todo guilhermeblanco Conceptually, support to custom collections by replacing ArrayCollection creation. |
72 | 72 | $collection = new ArrayCollection((array) $collection); |
73 | 73 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping\Driver; |
6 | 6 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | if ($locator instanceof FileLocator) { |
54 | 54 | $this->locator = $locator; |
55 | 55 | } else { |
56 | - $this->locator = new DefaultFileLocator((array)$locator, $fileExtension); |
|
56 | + $this->locator = new DefaultFileLocator((array) $locator, $fileExtension); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | |
@@ -120,8 +120,8 @@ discard block |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | $result = $this->loadMappingFile($this->locator->findMappingFile($className)); |
123 | - if (!isset($result[$className])) { |
|
124 | - throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className) . $this->locator->getFileExtension()); |
|
123 | + if ( ! isset($result[$className])) { |
|
124 | + throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className).$this->locator->getFileExtension()); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | $this->classCache[$className] = $result[$className]; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | return false; |
143 | 143 | } |
144 | 144 | |
145 | - return !$this->locator->fileExists($className); |
|
145 | + return ! $this->locator->fileExists($className); |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $this->initialize(); |
155 | 155 | } |
156 | 156 | |
157 | - if (! $this->classCache) { |
|
157 | + if ( ! $this->classCache) { |
|
158 | 158 | return (array) $this->locator->getAllClassNames($this->globalBasename); |
159 | 159 | } |
160 | 160 |
@@ -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\Driver; |
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\Proxy\Factory; |
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; |
6 | 6 |