Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/Tools/Event/GenerateSchemaEventArgs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Event;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Export;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/ExportException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Export;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php 1 patch
Spacing   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Export\Driver;
6 6
 
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
         }
49 49
 
50 50
         if ($metadata->inheritanceType) {
51
-            $lines[] = '$metadata->setInheritanceType(Mapping\InheritanceType::' . $metadata->inheritanceType . ');';
51
+            $lines[] = '$metadata->setInheritanceType(Mapping\InheritanceType::'.$metadata->inheritanceType.');';
52 52
         }
53 53
 
54 54
         if ($metadata->getCustomRepositoryClassName()) {
55
-            $lines[] = '$metadata->setCustomRepositoryClassName("' . $metadata->getCustomRepositoryClassName() . '");';
55
+            $lines[] = '$metadata->setCustomRepositoryClassName("'.$metadata->getCustomRepositoryClassName().'");';
56 56
         }
57 57
 
58 58
         if ($metadata->table) {
@@ -61,19 +61,19 @@  discard block
 block discarded – undo
61 61
             $lines[] = '$table = new Mapping\TableMetadata();';
62 62
             $lines[] = null;
63 63
 
64
-            if (! empty($table->getSchema())) {
65
-                $lines[] = '$table->setSchema("' . $table->getSchema() . '");';
64
+            if ( ! empty($table->getSchema())) {
65
+                $lines[] = '$table->setSchema("'.$table->getSchema().'");';
66 66
             }
67 67
 
68
-            $lines[] = '$table->setName("' . $table->getName() . '");';
69
-            $lines[] = '$table->setOptions(' . $this->varExport($table->getOptions()) . ');';
68
+            $lines[] = '$table->setName("'.$table->getName().'");';
69
+            $lines[] = '$table->setOptions('.$this->varExport($table->getOptions()).');';
70 70
 
71 71
             foreach ($table->getIndexes() as $index) {
72
-                $lines[] = '$table->addIndex(' . $this->varExport($index) . ');';
72
+                $lines[] = '$table->addIndex('.$this->varExport($index).');';
73 73
             }
74 74
 
75 75
             foreach ($table->getUniqueConstraints() as $constraint) {
76
-                $lines[] = '$table->addUniqueConstraint(' . $this->varExport($constraint) . ');';
76
+                $lines[] = '$table->addUniqueConstraint('.$this->varExport($constraint).');';
77 77
             }
78 78
 
79 79
             $lines[] = null;
@@ -85,45 +85,45 @@  discard block
 block discarded – undo
85 85
 
86 86
             $lines[] = '$discrColumn = new Mapping\DiscriminatorColumnMetadata();';
87 87
             $lines[] = null;
88
-            $lines[] = '$discrColumn->setColumnName("' . $discrColumn->getColumnName() . '");';
89
-            $lines[] = '$discrColumn->setType(Type::getType("' . $discrColumn->getTypeName() . '"));';
90
-            $lines[] = '$discrColumn->setTableName("' . $discrColumn->getTableName() . '");';
88
+            $lines[] = '$discrColumn->setColumnName("'.$discrColumn->getColumnName().'");';
89
+            $lines[] = '$discrColumn->setType(Type::getType("'.$discrColumn->getTypeName().'"));';
90
+            $lines[] = '$discrColumn->setTableName("'.$discrColumn->getTableName().'");';
91 91
 
92
-            if (! empty($discrColumn->getColumnDefinition())) {
93
-                $lines[] = '$property->setColumnDefinition("' . $discrColumn->getColumnDefinition() . '");';
92
+            if ( ! empty($discrColumn->getColumnDefinition())) {
93
+                $lines[] = '$property->setColumnDefinition("'.$discrColumn->getColumnDefinition().'");';
94 94
             }
95 95
 
96
-            if (! empty($discrColumn->getLength())) {
97
-                $lines[] = '$property->setLength(' . $discrColumn->getLength() . ');';
96
+            if ( ! empty($discrColumn->getLength())) {
97
+                $lines[] = '$property->setLength('.$discrColumn->getLength().');';
98 98
             }
99 99
 
100
-            if (! empty($discrColumn->getScale())) {
101
-                $lines[] = '$property->setScale(' . $discrColumn->getScale() . ');';
100
+            if ( ! empty($discrColumn->getScale())) {
101
+                $lines[] = '$property->setScale('.$discrColumn->getScale().');';
102 102
             }
103 103
 
104
-            if (! empty($discrColumn->getPrecision())) {
105
-                $lines[] = '$property->setPrecision(' . $discrColumn->getPrecision() . ');';
104
+            if ( ! empty($discrColumn->getPrecision())) {
105
+                $lines[] = '$property->setPrecision('.$discrColumn->getPrecision().');';
106 106
             }
107 107
 
108
-            $lines[] = '$discrColumn->setOptions(' . $this->varExport($discrColumn->getOptions()) . ');';
109
-            $lines[] = '$discrColumn->setNullable(' . $this->varExport($discrColumn->isNullable()) . ');';
110
-            $lines[] = '$discrColumn->setUnique(' . $this->varExport($discrColumn->isUnique()) . ');';
108
+            $lines[] = '$discrColumn->setOptions('.$this->varExport($discrColumn->getOptions()).');';
109
+            $lines[] = '$discrColumn->setNullable('.$this->varExport($discrColumn->isNullable()).');';
110
+            $lines[] = '$discrColumn->setUnique('.$this->varExport($discrColumn->isUnique()).');';
111 111
             $lines[] = null;
112 112
             $lines[] = '$metadata->setDiscriminatorColumn($discrColumn);';
113 113
         }
114 114
 
115 115
         if ($metadata->discriminatorMap) {
116
-            $lines[] = '$metadata->setDiscriminatorMap(' . $this->varExport($metadata->discriminatorMap) . ');';
116
+            $lines[] = '$metadata->setDiscriminatorMap('.$this->varExport($metadata->discriminatorMap).');';
117 117
         }
118 118
 
119 119
         if ($metadata->changeTrackingPolicy) {
120
-            $lines[] = '$metadata->setChangeTrackingPolicy(Mapping\ChangeTrackingPolicy::' . $metadata->changeTrackingPolicy . ');';
120
+            $lines[] = '$metadata->setChangeTrackingPolicy(Mapping\ChangeTrackingPolicy::'.$metadata->changeTrackingPolicy.');';
121 121
         }
122 122
 
123 123
         if ($metadata->lifecycleCallbacks) {
124 124
             foreach ($metadata->lifecycleCallbacks as $event => $callbacks) {
125 125
                 foreach ($callbacks as $callback) {
126
-                    $lines[] = '$metadata->addLifecycleCallback("' . $callback . '", "' . $event . '");';
126
+                    $lines[] = '$metadata->addLifecycleCallback("'.$callback.'", "'.$event.'");';
127 127
                 }
128 128
             }
129 129
         }
@@ -148,30 +148,30 @@  discard block
 block discarded – undo
148 148
         );
149 149
 
150 150
         $lines[] = null;
151
-        $lines[] = '$property->setColumnName("' . $property->getColumnName() . '");';
152
-        $lines[] = '$property->setType(Type::getType("' . $property->getTypeName() . '"));';
153
-        $lines[] = '$property->setTableName("' . $property->getTableName() . '");';
151
+        $lines[] = '$property->setColumnName("'.$property->getColumnName().'");';
152
+        $lines[] = '$property->setType(Type::getType("'.$property->getTypeName().'"));';
153
+        $lines[] = '$property->setTableName("'.$property->getTableName().'");';
154 154
 
155
-        if (! empty($property->getColumnDefinition())) {
156
-            $lines[] = '$property->setColumnDefinition("' . $property->getColumnDefinition() . '");';
155
+        if ( ! empty($property->getColumnDefinition())) {
156
+            $lines[] = '$property->setColumnDefinition("'.$property->getColumnDefinition().'");';
157 157
         }
158 158
 
159
-        if (! empty($property->getLength())) {
160
-            $lines[] = '$property->setLength(' . $property->getLength() . ');';
159
+        if ( ! empty($property->getLength())) {
160
+            $lines[] = '$property->setLength('.$property->getLength().');';
161 161
         }
162 162
 
163
-        if (! empty($property->getScale())) {
164
-            $lines[] = '$property->setScale(' . $property->getScale() . ');';
163
+        if ( ! empty($property->getScale())) {
164
+            $lines[] = '$property->setScale('.$property->getScale().');';
165 165
         }
166 166
 
167
-        if (! empty($property->getPrecision())) {
168
-            $lines[] = '$property->setPrecision(' . $property->getPrecision() . ');';
167
+        if ( ! empty($property->getPrecision())) {
168
+            $lines[] = '$property->setPrecision('.$property->getPrecision().');';
169 169
         }
170 170
 
171
-        $lines[] = '$property->setOptions(' . $this->varExport($property->getOptions()) . ');';
172
-        $lines[] = '$property->setPrimaryKey(' . $this->varExport($property->isPrimaryKey()) . ');';
173
-        $lines[] = '$property->setNullable(' . $this->varExport($property->isNullable()) . ');';
174
-        $lines[] = '$property->setUnique(' . $this->varExport($property->isUnique()) . ');';
171
+        $lines[] = '$property->setOptions('.$this->varExport($property->getOptions()).');';
172
+        $lines[] = '$property->setPrimaryKey('.$this->varExport($property->isPrimaryKey()).');';
173
+        $lines[] = '$property->setNullable('.$this->varExport($property->isNullable()).');';
174
+        $lines[] = '$property->setUnique('.$this->varExport($property->isUnique()).');';
175 175
 
176 176
         if ($property->hasValueGenerator()) {
177 177
             $lines[] = sprintf(
@@ -202,25 +202,25 @@  discard block
 block discarded – undo
202 202
         if ($association instanceof OneToOneAssociationMetadata) {
203 203
             $this->exportJoinColumns($association->getJoinColumns(), $lines, 'joinColumns');
204 204
 
205
-            $lines[] = '$association = new Mapping\OneToOneAssociationMetadata("' . $association->getName() . '");';
205
+            $lines[] = '$association = new Mapping\OneToOneAssociationMetadata("'.$association->getName().'");';
206 206
             $lines[] = null;
207 207
             $lines[] = '$association->setJoinColumns($joinColumns);';
208 208
         } else if ($association instanceof ManyToOneAssociationMetadata) {
209 209
             $this->exportJoinColumns($association->getJoinColumns(), $lines, 'joinColumns');
210 210
 
211
-            $lines[] = '$association = new Mapping\ManyToOneAssociationMetadata("' . $association->getName() . '");';
211
+            $lines[] = '$association = new Mapping\ManyToOneAssociationMetadata("'.$association->getName().'");';
212 212
             $lines[] = null;
213 213
             $lines[] = '$association->setJoinColumns($joinColumns);';
214 214
         } else if ($association instanceof OneToManyAssociationMetadata) {
215
-            $lines[] = '$association = new Mapping\OneToManyAssociationMetadata("' . $association->getName() . '");';
215
+            $lines[] = '$association = new Mapping\OneToManyAssociationMetadata("'.$association->getName().'");';
216 216
             $lines[] = null;
217
-            $lines[] = '$association->setOrderBy(' . $this->varExport($association->getOrderBy()) . ');';
217
+            $lines[] = '$association->setOrderBy('.$this->varExport($association->getOrderBy()).');';
218 218
         } else if ($association instanceof ManyToManyAssociationMetadata) {
219 219
             if ($association->getJoinTable()) {
220 220
                 $this->exportJoinTable($association->getJoinTable(), $lines);
221 221
             }
222 222
 
223
-            $lines[] = '$association = new Mapping\ManyToManyAssociationMetadata("' . $association->getName() . '");';
223
+            $lines[] = '$association = new Mapping\ManyToManyAssociationMetadata("'.$association->getName().'");';
224 224
             $lines[] = null;
225 225
 
226 226
             if ($association->getJoinTable()) {
@@ -228,26 +228,26 @@  discard block
 block discarded – undo
228 228
             }
229 229
 
230 230
             if ($association->getIndexedBy()) {
231
-                $lines[] = '$association->setIndexedBy("' . $association->getIndexedBy() . '");';
231
+                $lines[] = '$association->setIndexedBy("'.$association->getIndexedBy().'");';
232 232
             }
233 233
 
234
-            $lines[] = '$association->setOrderBy(' . $this->varExport($association->getOrderBy()) . ');';
234
+            $lines[] = '$association->setOrderBy('.$this->varExport($association->getOrderBy()).');';
235 235
         }
236 236
 
237
-        $lines[] = '$association->setTargetEntity("' . $association->getTargetEntity() . '");';
238
-        $lines[] = '$association->setFetchMode("' . $association->getFetchMode() . '");';
237
+        $lines[] = '$association->setTargetEntity("'.$association->getTargetEntity().'");';
238
+        $lines[] = '$association->setFetchMode("'.$association->getFetchMode().'");';
239 239
 
240 240
         if ($association->getMappedBy()) {
241
-            $lines[] = '$association->setMappedBy("' . $association->getMappedBy() . '");';
241
+            $lines[] = '$association->setMappedBy("'.$association->getMappedBy().'");';
242 242
         }
243 243
 
244 244
         if ($association->getInversedBy()) {
245
-            $lines[] = '$association->setInversedBy("' . $association->getInversedBy() . '");';
245
+            $lines[] = '$association->setInversedBy("'.$association->getInversedBy().'");';
246 246
         }
247 247
 
248
-        $lines[] = '$association->setCascade(' . $this->varExport($cascade) . ');';
249
-        $lines[] = '$association->setOrphanRemoval(' . $this->varExport($association->isOrphanRemoval()) . ');';
250
-        $lines[] = '$association->setPrimaryKey(' . $this->varExport($association->isPrimaryKey()) . ');';
248
+        $lines[] = '$association->setCascade('.$this->varExport($cascade).');';
249
+        $lines[] = '$association->setOrphanRemoval('.$this->varExport($association->isOrphanRemoval()).');';
250
+        $lines[] = '$association->setPrimaryKey('.$this->varExport($association->isPrimaryKey()).');';
251 251
         $lines[] = null;
252 252
         $lines[] = '$metadata->addProperty($association);';
253 253
     }
@@ -257,13 +257,13 @@  discard block
 block discarded – undo
257 257
         $lines[] = null;
258 258
         $lines[] = '$joinTable = new Mapping\JoinTableMetadata();';
259 259
         $lines[] = null;
260
-        $lines[] = '$joinTable->setName("' . $joinTable->getName() . '");';
260
+        $lines[] = '$joinTable->setName("'.$joinTable->getName().'");';
261 261
 
262
-        if (! empty($joinTable->getSchema())) {
263
-            $lines[] = '$joinTable->setSchema("' . $joinTable->getSchema() . '");';
262
+        if ( ! empty($joinTable->getSchema())) {
263
+            $lines[] = '$joinTable->setSchema("'.$joinTable->getSchema().'");';
264 264
         }
265 265
 
266
-        $lines[] = '$joinTable->setOptions(' . $this->varExport($joinTable->getOptions()) . ');';
266
+        $lines[] = '$joinTable->setOptions('.$this->varExport($joinTable->getOptions()).');';
267 267
 
268 268
         $this->exportJoinColumns($joinTable->getJoinColumns(), $lines, 'joinColumns');
269 269
 
@@ -283,24 +283,24 @@  discard block
 block discarded – undo
283 283
 
284 284
     private function exportJoinColumns(array $joinColumns, array &$lines, $variableName)
285 285
     {
286
-        $lines[] = '$' . $variableName . ' = array();';
286
+        $lines[] = '$'.$variableName.' = array();';
287 287
 
288 288
         foreach ($joinColumns as $joinColumn) {
289 289
             /** @var JoinColumnMetadata $joinColumn */
290 290
             $lines[] = '$joinColumn = new Mapping\JoinColumnMetadata();';
291 291
             $lines[] = null;
292
-            $lines[] = '$joinColumn->setTableName("' . $joinColumn->getTableName() . '");';
293
-            $lines[] = '$joinColumn->setColumnName("' . $joinColumn->getColumnName() . '");';
294
-            $lines[] = '$joinColumn->setReferencedColumnName("' . $joinColumn->getReferencedColumnName() . '");';
295
-            $lines[] = '$joinColumn->setAliasedName("' . $joinColumn->getAliasedName() . '");';
296
-            $lines[] = '$joinColumn->setColumnDefinition("' . $joinColumn->getColumnDefinition() . '");';
297
-            $lines[] = '$joinColumn->setOnDelete("' . $joinColumn->getOnDelete() . '");';
298
-            $lines[] = '$joinColumn->setOptions(' . $this->varExport($joinColumn->getOptions()) . ');';
299
-            $lines[] = '$joinColumn->setNullable("' . $joinColumn->isNullable() . '");';
300
-            $lines[] = '$joinColumn->setUnique("' . $joinColumn->isUnique() . '");';
301
-            $lines[] = '$joinColumn->setPrimaryKey("' . $joinColumn->isPrimaryKey() . '");';
292
+            $lines[] = '$joinColumn->setTableName("'.$joinColumn->getTableName().'");';
293
+            $lines[] = '$joinColumn->setColumnName("'.$joinColumn->getColumnName().'");';
294
+            $lines[] = '$joinColumn->setReferencedColumnName("'.$joinColumn->getReferencedColumnName().'");';
295
+            $lines[] = '$joinColumn->setAliasedName("'.$joinColumn->getAliasedName().'");';
296
+            $lines[] = '$joinColumn->setColumnDefinition("'.$joinColumn->getColumnDefinition().'");';
297
+            $lines[] = '$joinColumn->setOnDelete("'.$joinColumn->getOnDelete().'");';
298
+            $lines[] = '$joinColumn->setOptions('.$this->varExport($joinColumn->getOptions()).');';
299
+            $lines[] = '$joinColumn->setNullable("'.$joinColumn->isNullable().'");';
300
+            $lines[] = '$joinColumn->setUnique("'.$joinColumn->isUnique().'");';
301
+            $lines[] = '$joinColumn->setPrimaryKey("'.$joinColumn->isPrimaryKey().'");';
302 302
             $lines[] = null;
303
-            $lines[] = '$' . $variableName . '[] = $joinColumn;';
303
+            $lines[] = '$'.$variableName.'[] = $joinColumn;';
304 304
         }
305 305
     }
306 306
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     protected function varExport($var)
313 313
     {
314 314
         $export = var_export($var, true);
315
-        $export = str_replace("\n", PHP_EOL . str_repeat(' ', 8), $export);
315
+        $export = str_replace("\n", PHP_EOL.str_repeat(' ', 8), $export);
316 316
         $export = str_replace('  ', ' ', $export);
317 317
         $export = str_replace('array (', 'array(', $export);
318 318
         $export = str_replace('array( ', 'array(', $export);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Export\Driver;
6 6
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function exportClassMetadata(ClassMetadata $metadata)
39 39
     {
40 40
         $xml = new \SimpleXmlElement("<?xml version=\"1.0\" encoding=\"utf-8\"?><doctrine-mapping ".
41
-            "xmlns=\"http://doctrine-project.org/schemas/orm/doctrine-mapping\" " .
41
+            "xmlns=\"http://doctrine-project.org/schemas/orm/doctrine-mapping\" ".
42 42
             "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ".
43 43
             "xsi:schemaLocation=\"http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd\" />");
44 44
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             }
224 224
         }
225 225
 
226
-        if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks)>0) {
226
+        if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks) > 0) {
227 227
             $lifecycleCallbacksXml = $root->addChild('lifecycle-callbacks');
228 228
 
229 229
             foreach ($metadata->lifecycleCallbacks as $name => $methods) {
@@ -387,15 +387,15 @@  discard block
 block discarded – undo
387 387
             $joinColumnXml->addAttribute('name', $joinColumn->getColumnName());
388 388
             $joinColumnXml->addAttribute('referenced-column-name', $joinColumn->getReferencedColumnName());
389 389
 
390
-            if (! empty($joinColumn->getAliasedName())) {
390
+            if ( ! empty($joinColumn->getAliasedName())) {
391 391
                 $joinColumnXml->addAttribute('field-name', $joinColumn->getAliasedName());
392 392
             }
393 393
 
394
-            if (! empty($joinColumn->getOnDelete())) {
394
+            if ( ! empty($joinColumn->getOnDelete())) {
395 395
                 $joinColumnXml->addAttribute('on-delete', $joinColumn->getOnDelete());
396 396
             }
397 397
 
398
-            if (! empty($joinColumn->getColumnDefinition())) {
398
+            if ( ! empty($joinColumn->getColumnDefinition())) {
399 399
                 $joinColumnXml->addAttribute('column-definition', $joinColumn->getColumnDefinition());
400 400
             }
401 401
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 
430 430
         foreach (['remove', 'persist', 'refresh', 'merge', 'detach'] as $type) {
431 431
             if (in_array($type, $associationCascades)) {
432
-                $cascades[] = 'cascade-' . $type;
432
+                $cascades[] = 'cascade-'.$type;
433 433
             }
434 434
         }
435 435
 
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
     {
481 481
         $sequenceDefinition = $metadata->getValueGenerator()->getDefinition();
482 482
 
483
-        if (! ($metadata->getValueGenerator()->getType() === GeneratorType::SEQUENCE && $sequenceDefinition)) {
483
+        if ( ! ($metadata->getValueGenerator()->getType() === GeneratorType::SEQUENCE && $sequenceDefinition)) {
484 484
             return;
485 485
         }
486 486
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/AnnotationExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Export\Driver;
6 6
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     protected function generateOutputPath(ClassMetadata $metadata)
52 52
     {
53
-        return $this->outputDir . '/' . str_replace('\\', '/', $metadata->getClassName()) . $this->extension;
53
+        return $this->outputDir.'/'.str_replace('\\', '/', $metadata->getClassName()).$this->extension;
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Export\Driver;
6 6
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 if ( ! is_dir($dir)) {
127 127
                     mkdir($dir, 0775, true);
128 128
                 }
129
-                if (file_exists($path) && !$this->overwriteExistingFiles) {
129
+                if (file_exists($path) && ! $this->overwriteExistingFiles) {
130 130
                     throw ExportException::attemptOverwriteExistingFile($path);
131 131
                 }
132 132
                 file_put_contents($path, $output);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function generateOutputPath(ClassMetadata $metadata)
146 146
     {
147
-        return $this->outputDir . '/' . str_replace('\\', '.', $metadata->getClassName()) . $this->extension;
147
+        return $this->outputDir.'/'.str_replace('\\', '.', $metadata->getClassName()).$this->extension;
148 148
     }
149 149
 
150 150
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Setup.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools;
6 6
 
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public static function registerAutoloadDirectory($directory)
30 30
     {
31
-        if (!class_exists('Doctrine\Common\ClassLoader', false)) {
32
-            require_once $directory . "/Doctrine/Common/ClassLoader.php";
31
+        if ( ! class_exists('Doctrine\Common\ClassLoader', false)) {
32
+            require_once $directory."/Doctrine/Common/ClassLoader.php";
33 33
         }
34 34
 
35 35
         $loader = new ClassLoader("Doctrine", $directory);
36 36
         $loader->register();
37 37
 
38
-        $loader = new ClassLoader('Symfony\Component', $directory . "/Doctrine");
38
+        $loader = new ClassLoader('Symfony\Component', $directory."/Doctrine");
39 39
         $loader->register();
40 40
     }
41 41
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
 
113 113
         if ($cache instanceof CacheProvider) {
114
-            $cache->setNamespace("dc2_" . md5($proxyDir) . "_"); // to avoid collisions
114
+            $cache->setNamespace("dc2_".md5($proxyDir)."_"); // to avoid collisions
115 115
         }
116 116
 
117 117
         $config = new Configuration();
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools;
6 6
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $namespace = $this->getClassNamespace($fullClassName);
100 100
 
101
-        return $namespace ? 'namespace ' . $namespace . ';' : '';
101
+        return $namespace ? 'namespace '.$namespace.';' : '';
102 102
     }
103 103
 
104 104
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $repositoryName = $this->repositoryName ?: EntityRepository::class;
114 114
 
115 115
         if ($namespace && $repositoryName[0] !== '\\') {
116
-            $repositoryName = '\\' . $repositoryName;
116
+            $repositoryName = '\\'.$repositoryName;
117 117
         }
118 118
 
119 119
         return $repositoryName;
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $code = $this->generateEntityRepositoryClass($fullClassName);
131 131
 
132
-        $path = $outputDirectory . DIRECTORY_SEPARATOR
133
-              . str_replace('\\', \DIRECTORY_SEPARATOR, $fullClassName) . '.php';
132
+        $path = $outputDirectory.DIRECTORY_SEPARATOR
133
+              . str_replace('\\', \DIRECTORY_SEPARATOR, $fullClassName).'.php';
134 134
         $dir = dirname($path);
135 135
 
136 136
         if ( ! is_dir($dir)) {
Please login to merge, or discard this patch.