Completed
Push — master ( f4c848...d31188 )
by Jonathan
24s queued 17s
created
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 
414 414
                 if (isset($manyToOneElement['fetch'])) {
415 415
                     $association->setFetchMode(
416
-                        constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $manyToOneElement['fetch'])
416
+                        constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $manyToOneElement['fetch'])
417 417
                     );
418 418
                 }
419 419
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
                 $fieldName = (string) $overrideElement['name'];
567 567
                 $property  = $metadata->getProperty($fieldName);
568 568
 
569
-                if (! $property) {
569
+                if ( ! $property) {
570 570
                     throw Mapping\MappingException::invalidOverrideFieldName($metadata->getClassName(), $fieldName);
571 571
                 }
572 572
 
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
                 // Check for fetch
625 625
                 if (isset($overrideElement['fetch'])) {
626 626
                     $override->setFetchMode(
627
-                        constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $overrideElement['fetch'])
627
+                        constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $overrideElement['fetch'])
628 628
                     );
629 629
                 }
630 630
 
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
         // Evaluate <lifecycle-callbacks...>
636 636
         if (isset($xmlRoot->{'lifecycle-callbacks'})) {
637 637
             foreach ($xmlRoot->{'lifecycle-callbacks'}->{'lifecycle-callback'} as $lifecycleCallback) {
638
-                $eventName  = constant(Events::class . '::' . (string) $lifecycleCallback['type']);
638
+                $eventName  = constant(Events::class.'::'.(string) $lifecycleCallback['type']);
639 639
                 $methodName = (string) $lifecycleCallback['method'];
640 640
 
641 641
                 $metadata->addLifecycleCallback($methodName, $eventName);
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
             foreach ($xmlRoot->{'entity-listeners'}->{'entity-listener'} as $listenerElement) {
648 648
                 $listenerClassName = (string) $listenerElement['class'];
649 649
 
650
-                if (! class_exists($listenerClassName)) {
650
+                if ( ! class_exists($listenerClassName)) {
651 651
                     throw Mapping\MappingException::entityListenerClassNotFound(
652 652
                         $listenerClassName,
653 653
                         $metadata->getClassName()
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
         $fieldName = null
815 815
     ) {
816 816
         $baseRegion    = strtolower(str_replace('\\', '_', $metadata->getRootClassName()));
817
-        $defaultRegion = $baseRegion . ($fieldName ? '__' . $fieldName : '');
817
+        $defaultRegion = $baseRegion.($fieldName ? '__'.$fieldName : '');
818 818
 
819 819
         $region = (string) ($cacheMapping['region'] ?? $defaultRegion);
820 820
         $usage  = isset($cacheMapping['usage'])
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
             Events::preFlush,
844 844
         ];
845 845
 
846
-        return array_filter($events, function ($eventName) use ($method) {
846
+        return array_filter($events, function($eventName) use ($method) {
847 847
             return $eventName === $method->getName();
848 848
         });
849 849
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ToOneAssociationMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         /** @var ToOneAssociationMetadata $value */
20 20
         $joinColumnExporter = new JoinColumnMetadataExporter();
21 21
         $indentation        = str_repeat(self::INDENTATION, $indentationLevel);
22
-        $objectReference    = $indentation . static::VARIABLE;
22
+        $objectReference    = $indentation.static::VARIABLE;
23 23
         $lines              = [];
24 24
 
25 25
         $lines[] = parent::export($value, $indentationLevel);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             $lines[] = null;
29 29
             $lines[] = $joinColumnExporter->export($joinColumn, $indentationLevel);
30 30
             $lines[] = null;
31
-            $lines[] = $objectReference . '->addJoinColumn(' . $joinColumnExporter::VARIABLE . ');';
31
+            $lines[] = $objectReference.'->addJoinColumn('.$joinColumnExporter::VARIABLE.');';
32 32
         }
33 33
 
34 34
         return implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ManyToManyAssociationMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         /** @var ManyToManyAssociationMetadata $value */
23 23
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
24
-        $objectReference = $indentation . static::VARIABLE;
24
+        $objectReference = $indentation.static::VARIABLE;
25 25
         $lines           = [];
26 26
 
27 27
         $lines[] = parent::export($value, $indentationLevel);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             $lines[] = null;
33 33
             $lines[] = $joinTableExporter->export($value->getJoinTable(), $indentationLevel);
34 34
             $lines[] = null;
35
-            $lines[] = $objectReference . '->setJoinTable(' . $joinTableExporter::VARIABLE . ');';
35
+            $lines[] = $objectReference.'->setJoinTable('.$joinTableExporter::VARIABLE.');';
36 36
         }
37 37
 
38 38
         return implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ColumnMetadataExporter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,20 +22,20 @@
 block discarded – undo
22 22
         /** @var ColumnMetadata $value */
23 23
         $variableExporter = new VariableExporter();
24 24
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
25
-        $objectReference  = $indentation . static::VARIABLE;
25
+        $objectReference  = $indentation.static::VARIABLE;
26 26
         $lines            = [];
27 27
 
28
-        $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value);
28
+        $lines[] = $objectReference.' = '.$this->exportInstantiation($value);
29 29
 
30
-        if (! empty($value->getColumnDefinition())) {
31
-            $lines[] = $objectReference . '->setColumnDefinition("' . $value->getColumnDefinition() . '");';
30
+        if ( ! empty($value->getColumnDefinition())) {
31
+            $lines[] = $objectReference.'->setColumnDefinition("'.$value->getColumnDefinition().'");';
32 32
         }
33 33
 
34
-        $lines[] = $objectReference . '->setTableName("' . $value->getTableName() . '");';
35
-        $lines[] = $objectReference . '->setOptions(' . ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)) . ');';
36
-        $lines[] = $objectReference . '->setPrimaryKey(' . ltrim($variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1)) . ');';
37
-        $lines[] = $objectReference . '->setNullable(' . ltrim($variableExporter->export($value->isNullable(), $indentationLevel + 1)) . ');';
38
-        $lines[] = $objectReference . '->setUnique(' . ltrim($variableExporter->export($value->isUnique(), $indentationLevel + 1)) . ');';
34
+        $lines[] = $objectReference.'->setTableName("'.$value->getTableName().'");';
35
+        $lines[] = $objectReference.'->setOptions('.ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)).');';
36
+        $lines[] = $objectReference.'->setPrimaryKey('.ltrim($variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1)).');';
37
+        $lines[] = $objectReference.'->setNullable('.ltrim($variableExporter->export($value->isNullable(), $indentationLevel + 1)).');';
38
+        $lines[] = $objectReference.'->setUnique('.ltrim($variableExporter->export($value->isUnique(), $indentationLevel + 1)).');';
39 39
 
40 40
         return implode(PHP_EOL, $lines);
41 41
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/TableMetadataExporter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,24 +23,24 @@
 block discarded – undo
23 23
         /** @var TableMetadata $value */
24 24
         $variableExporter = new VariableExporter();
25 25
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
26
-        $objectReference  = $indentation . static::VARIABLE;
26
+        $objectReference  = $indentation.static::VARIABLE;
27 27
         $lines            = [];
28 28
 
29
-        $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value);
29
+        $lines[] = $objectReference.' = '.$this->exportInstantiation($value);
30 30
 
31
-        if (! empty($value->getSchema())) {
32
-            $lines[] = $objectReference . '->setSchema("' . $value->getSchema() . '");';
31
+        if ( ! empty($value->getSchema())) {
32
+            $lines[] = $objectReference.'->setSchema("'.$value->getSchema().'");';
33 33
         }
34 34
 
35 35
         foreach ($value->getIndexes() as $index) {
36
-            $lines[] = $objectReference . '->addIndex(' . ltrim($variableExporter->export($index, $indentationLevel + 1)) . ');';
36
+            $lines[] = $objectReference.'->addIndex('.ltrim($variableExporter->export($index, $indentationLevel + 1)).');';
37 37
         }
38 38
 
39 39
         foreach ($value->getUniqueConstraints() as $uniqueConstraint) {
40
-            $lines[] = $objectReference . '->addUniqueConstraint(' . ltrim($variableExporter->export($uniqueConstraint, $indentationLevel + 1)) . ');';
40
+            $lines[] = $objectReference.'->addUniqueConstraint('.ltrim($variableExporter->export($uniqueConstraint, $indentationLevel + 1)).');';
41 41
         }
42 42
 
43
-        $lines[] = $objectReference . '->setOptions(' . ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)) . ');';
43
+        $lines[] = $objectReference.'->setOptions('.ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)).');';
44 44
 
45 45
         return implode(PHP_EOL, $lines);
46 46
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ToManyAssociationMetadataExporter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,16 +19,16 @@
 block discarded – undo
19 19
         /** @var ToManyAssociationMetadata $value */
20 20
         $variableExporter = new VariableExporter();
21 21
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
22
-        $objectReference  = $indentation . static::VARIABLE;
22
+        $objectReference  = $indentation.static::VARIABLE;
23 23
         $lines            = [];
24 24
 
25 25
         $lines[] = parent::export($value, $indentationLevel);
26 26
 
27
-        if (! empty($value->getIndexedBy())) {
28
-            $lines[] = $objectReference . '->setIndexedBy("' . $value->getIndexedBy() . '"");';
27
+        if ( ! empty($value->getIndexedBy())) {
28
+            $lines[] = $objectReference.'->setIndexedBy("'.$value->getIndexedBy().'"");';
29 29
         }
30 30
 
31
-        $lines[] = $objectReference . '->setOderBy(' . $variableExporter->export($value->getOrderBy(), $indentationLevel + 1) . ');';
31
+        $lines[] = $objectReference.'->setOderBy('.$variableExporter->export($value->getOrderBy(), $indentationLevel + 1).');';
32 32
 
33 33
         return implode(PHP_EOL, $lines);
34 34
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/CacheMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     {
23 23
         /** @var CacheMetadata $value */
24 24
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
25
-        $objectReference = $indentation . static::VARIABLE;
25
+        $objectReference = $indentation.static::VARIABLE;
26 26
         $lines           = [];
27 27
 
28
-        $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value);
28
+        $lines[] = $objectReference.' = '.$this->exportInstantiation($value);
29 29
 
30 30
         return implode(PHP_EOL, $lines);
31 31
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/LocalColumnMetadataExporter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@
 block discarded – undo
20 20
     {
21 21
         /** @var LocalColumnMetadata $value */
22 22
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
23
-        $objectReference = $indentation . static::VARIABLE;
23
+        $objectReference = $indentation.static::VARIABLE;
24 24
         $lines           = [];
25 25
 
26 26
         $lines[] = parent::export($value, $indentationLevel);
27 27
 
28
-        $lines[] = $objectReference . '->setLength(' . $value->getLength() . ');';
29
-        $lines[] = $objectReference . '->setScale(' . $value->getScale() . ');';
30
-        $lines[] = $objectReference . '->setPrecision(' . $value->getPrecision() . ');';
28
+        $lines[] = $objectReference.'->setLength('.$value->getLength().');';
29
+        $lines[] = $objectReference.'->setScale('.$value->getScale().');';
30
+        $lines[] = $objectReference.'->setPrecision('.$value->getPrecision().');';
31 31
 
32 32
         if ($value->hasValueGenerator()) {
33 33
             $lines[] = sprintf(
34
-                $objectReference . '->setValueGenerator(new ValueGenerator(%s, %s));',
34
+                $objectReference.'->setValueGenerator(new ValueGenerator(%s, %s));',
35 35
                 var_export($value->getValueGenerator()->getType(), true),
36 36
                 var_export($value->getValueGenerator()->getDefinition(), true)
37 37
             );
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/JoinTableMetadataExporter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,19 +24,19 @@
 block discarded – undo
24 24
         /** @var JoinTableMetadata $value */
25 25
         $joinColumnExporter = new JoinColumnMetadataExporter();
26 26
         $indentation        = str_repeat(self::INDENTATION, $indentationLevel);
27
-        $objectReference    = $indentation . static::VARIABLE;
27
+        $objectReference    = $indentation.static::VARIABLE;
28 28
         $lines              = [];
29 29
 
30 30
         $lines[] = parent::export($value, $indentationLevel);
31 31
 
32 32
         foreach ($value->getJoinColumns() as $joinColumn) {
33 33
             $lines[] = $joinColumnExporter->export($joinColumn, $indentationLevel);
34
-            $lines[] = $objectReference . '->addJoinColumn(' . $joinColumnExporter::VARIABLE . ');';
34
+            $lines[] = $objectReference.'->addJoinColumn('.$joinColumnExporter::VARIABLE.');';
35 35
         }
36 36
 
37 37
         foreach ($value->getInverseJoinColumns() as $inverseJoinColumn) {
38 38
             $lines[] = $joinColumnExporter->export($inverseJoinColumn, $indentationLevel);
39
-            $lines[] = $objectReference . '->addInverseJoinColumn(' . $joinColumnExporter::VARIABLE . ');';
39
+            $lines[] = $objectReference.'->addInverseJoinColumn('.$joinColumnExporter::VARIABLE.');';
40 40
         }
41 41
 
42 42
         return implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.