@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | ->expects(self::once()) |
169 | 169 | ->method('loadCollection') |
170 | 170 | ->with($this->collection) |
171 | - ->willReturnCallback(function (PersistentCollection $persistentCollection) use ($persistedElement) : void { |
|
171 | + ->willReturnCallback(function(PersistentCollection $persistentCollection) use ($persistedElement) : void { |
|
172 | 172 | $persistentCollection->unwrap()->add($persistedElement); |
173 | 173 | }); |
174 | 174 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | ->expects(self::once()) |
206 | 206 | ->method('loadCollection') |
207 | 207 | ->with($this->collection) |
208 | - ->willReturnCallback(function (PersistentCollection $persistentCollection) use ( |
|
208 | + ->willReturnCallback(function(PersistentCollection $persistentCollection) use ( |
|
209 | 209 | $persistedElement, |
210 | 210 | $newElementThatIsAlsoPersisted |
211 | 211 | ) : void { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | ->expects(self::once()) |
248 | 248 | ->method('loadCollection') |
249 | 249 | ->with($this->collection) |
250 | - ->willReturnCallback(function (PersistentCollection $persistentCollection) use ( |
|
250 | + ->willReturnCallback(function(PersistentCollection $persistentCollection) use ( |
|
251 | 251 | $persistedElement, |
252 | 252 | $newElementThatIsAlsoPersisted |
253 | 253 | ) : void { |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function exportClassMetadata(ClassMetadataInfo $metadata): string |
43 | 43 | { |
44 | - $xml = new SimpleXmlElement('<?xml version="1.0" encoding="utf-8"?><doctrine-mapping ' . |
|
45 | - 'xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" ' . |
|
46 | - 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' . |
|
44 | + $xml = new SimpleXmlElement('<?xml version="1.0" encoding="utf-8"?><doctrine-mapping '. |
|
45 | + 'xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" '. |
|
46 | + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '. |
|
47 | 47 | 'xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" />'); |
48 | 48 | |
49 | 49 | if ($metadata->isMappedSuperclass) { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $trackingPolicy = $this->_getChangeTrackingPolicyString($metadata->changeTrackingPolicy); |
100 | 100 | |
101 | - if ( $trackingPolicy != 'DEFERRED_IMPLICIT') { |
|
101 | + if ($trackingPolicy != 'DEFERRED_IMPLICIT') { |
|
102 | 102 | $root->addChild('change-tracking-policy', $trackingPolicy); |
103 | 103 | } |
104 | 104 | |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | if (count($cascade) === 5) { |
300 | - $cascade = ['cascade-all']; |
|
300 | + $cascade = ['cascade-all']; |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | if ($cascade) { |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | } |
380 | 380 | } |
381 | 381 | |
382 | - if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks)>0) { |
|
382 | + if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks) > 0) { |
|
383 | 383 | $lifecycleCallbacksXml = $root->addChild('lifecycle-callbacks'); |
384 | 384 | |
385 | 385 | foreach ($metadata->lifecycleCallbacks as $name => $methods) { |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | { |
431 | 431 | $sequenceDefinition = $metadata->sequenceGeneratorDefinition; |
432 | 432 | |
433 | - if (! ($metadata->generatorType === ClassMetadataInfo::GENERATOR_TYPE_SEQUENCE && $sequenceDefinition)) { |
|
433 | + if ( ! ($metadata->generatorType === ClassMetadataInfo::GENERATOR_TYPE_SEQUENCE && $sequenceDefinition)) { |
|
434 | 434 | return; |
435 | 435 | } |
436 | 436 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | protected function _generateOutputPath(ClassMetadataInfo $metadata): string |
62 | 62 | { |
63 | - return $this->_outputDir . '/' . str_replace('\\', '/', $metadata->name) . $this->_extension; |
|
63 | + return $this->_outputDir.'/'.str_replace('\\', '/', $metadata->name).$this->_extension; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | public function setEntityGenerator(EntityGenerator $entityGenerator): void |