Failed Conditions
Pull Request — master (#6593)
by Thomas
16:12
created
tests/Doctrine/Tests/ORM/PersistentCollectionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/AnnotationExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.