@@ -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\Strategy; |
7 | 7 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $this->ensureDirectoryIsReady(dirname($filePath)); |
36 | 36 | |
37 | - $tmpFileName = $filePath . '.' . uniqid('', true); |
|
37 | + $tmpFileName = $filePath.'.'.uniqid('', true); |
|
38 | 38 | |
39 | 39 | file_put_contents($tmpFileName, $sourceCode); |
40 | 40 | @chmod($tmpFileName, 0664); |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | */ |
51 | 51 | private function ensureDirectoryIsReady(string $directory) |
52 | 52 | { |
53 | - if (! is_dir($directory) && (false === @mkdir($directory, 0775, true))) { |
|
53 | + if ( ! is_dir($directory) && (false === @mkdir($directory, 0775, true))) { |
|
54 | 54 | throw new \RuntimeException(sprintf('Your metadata directory "%s" must be writable', $directory)); |
55 | 55 | } |
56 | 56 | |
57 | - if (! is_writable($directory)) { |
|
57 | + if ( ! is_writable($directory)) { |
|
58 | 58 | throw new \RuntimeException(sprintf('Your proxy directory "%s" must be writable', $directory)); |
59 | 59 | } |
60 | 60 | } |
@@ -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\Strategy; |
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\Strategy; |
7 | 7 | |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function generate(string $filePath, ClassMetadataDefinition $definition): void |
16 | 16 | { |
17 | - if (! file_exists($filePath)) { |
|
17 | + if ( ! file_exists($filePath)) { |
|
18 | 18 | parent::generate($filePath, $definition); |
19 | 19 | |
20 | 20 | return; |
@@ -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 @@ |
||
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 @@ |
||
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 @@ |
||
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 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function referenceColumnName() |
87 | 87 | { |
88 | - return $this->case === CASE_UPPER ? 'ID' : 'id'; |
|
88 | + return $this->case === CASE_UPPER ? 'ID' : 'id'; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function joinColumnName($propertyName, $className = null) |
95 | 95 | { |
96 | - return $this->underscore($propertyName) . '_' . $this->referenceColumnName(); |
|
96 | + return $this->underscore($propertyName).'_'.$this->referenceColumnName(); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public function joinTableName($sourceEntity, $targetEntity, $propertyName = null) |
103 | 103 | { |
104 | - return $this->classToTableName($sourceEntity) . '_' . $this->classToTableName($targetEntity); |
|
104 | + return $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function joinKeyColumnName($entityName, $referencedColumnName = null) |
111 | 111 | { |
112 | - return $this->classToTableName($entityName) . '_' . |
|
112 | + return $this->classToTableName($entityName).'_'. |
|
113 | 113 | ($referencedColumnName ?: $this->referenceColumnName()); |
114 | 114 | } |
115 | 115 |
@@ -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 |