@@ -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\Exporter; |
7 | 7 | |
@@ -19,20 +19,20 @@ discard block |
||
19 | 19 | /** @var ColumnMetadata $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 | - $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value); |
|
25 | + $lines[] = $objectReference.' = '.$this->exportInstantiation($value); |
|
26 | 26 | |
27 | - if (! empty($value->getColumnDefinition())) { |
|
28 | - $lines[] = $objectReference. '->setColumnDefinition("' . $value->getColumnDefinition() . '");'; |
|
27 | + if ( ! empty($value->getColumnDefinition())) { |
|
28 | + $lines[] = $objectReference.'->setColumnDefinition("'.$value->getColumnDefinition().'");'; |
|
29 | 29 | } |
30 | 30 | |
31 | - $lines[] = $objectReference . '->setTableName("' . $value->getTableName() . '");'; |
|
32 | - $lines[] = $objectReference . '->setOptions(' . ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)) . ');'; |
|
33 | - $lines[] = $objectReference . '->setPrimaryKey(' . ltrim($variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1)) . ');'; |
|
34 | - $lines[] = $objectReference . '->setNullable(' . ltrim($variableExporter->export($value->isNullable(), $indentationLevel + 1)) . ');'; |
|
35 | - $lines[] = $objectReference . '->setUnique(' . ltrim($variableExporter->export($value->isUnique(), $indentationLevel + 1)) . ');'; |
|
31 | + $lines[] = $objectReference.'->setTableName("'.$value->getTableName().'");'; |
|
32 | + $lines[] = $objectReference.'->setOptions('.ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)).');'; |
|
33 | + $lines[] = $objectReference.'->setPrimaryKey('.ltrim($variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1)).');'; |
|
34 | + $lines[] = $objectReference.'->setNullable('.ltrim($variableExporter->export($value->isNullable(), $indentationLevel + 1)).');'; |
|
35 | + $lines[] = $objectReference.'->setUnique('.ltrim($variableExporter->export($value->isUnique(), $indentationLevel + 1)).');'; |
|
36 | 36 | |
37 | 37 | return implode(PHP_EOL, $lines); |
38 | 38 | } |
@@ -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\Exporter; |
7 | 7 | |
@@ -19,24 +19,24 @@ discard block |
||
19 | 19 | /** @var TableMetadata $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 | - $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value); |
|
25 | + $lines[] = $objectReference.' = '.$this->exportInstantiation($value); |
|
26 | 26 | |
27 | - if (! empty($value->getSchema())) { |
|
28 | - $lines[] = $objectReference . '->setSchema("' . $value->getSchema() . '");'; |
|
27 | + if ( ! empty($value->getSchema())) { |
|
28 | + $lines[] = $objectReference.'->setSchema("'.$value->getSchema().'");'; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | foreach ($value->getIndexes() as $index) { |
32 | - $lines[] = $objectReference . '->addIndex(' . ltrim($variableExporter->export($index, $indentationLevel + 1)) . ');'; |
|
32 | + $lines[] = $objectReference.'->addIndex('.ltrim($variableExporter->export($index, $indentationLevel + 1)).');'; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | foreach ($value->getUniqueConstraints() as $uniqueConstraint) { |
36 | - $lines[] = $objectReference . '->addUniqueConstraint(' . ltrim($variableExporter->export($uniqueConstraint, $indentationLevel + 1)) . ');'; |
|
36 | + $lines[] = $objectReference.'->addUniqueConstraint('.ltrim($variableExporter->export($uniqueConstraint, $indentationLevel + 1)).');'; |
|
37 | 37 | } |
38 | 38 | |
39 | - $lines[] = $objectReference . '->setOptions(' . ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)) . ');'; |
|
39 | + $lines[] = $objectReference.'->setOptions('.ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)).');'; |
|
40 | 40 | |
41 | 41 | return implode(PHP_EOL, $lines); |
42 | 42 | } |
@@ -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\Exporter; |
7 | 7 | |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | { |
19 | 19 | /** @var TransientMetadata $value */ |
20 | 20 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
21 | - $objectReference = $indentation . static::VARIABLE; |
|
21 | + $objectReference = $indentation.static::VARIABLE; |
|
22 | 22 | |
23 | - return $objectReference . ' = ' . $this->exportInstantiation($value); |
|
23 | + return $objectReference.' = '.$this->exportInstantiation($value); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping; |
6 | 6 | |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | continue; |
256 | 256 | } |
257 | 257 | |
258 | - if (! ($property instanceof ToOneAssociationMetadata)) { |
|
258 | + if ( ! ($property instanceof ToOneAssociationMetadata)) { |
|
259 | 259 | continue; |
260 | 260 | } |
261 | 261 | |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | */ |
286 | 286 | protected function validateRuntimeMetadata(ClassMetadata $class, ClassMetadata $parent = null) |
287 | 287 | { |
288 | - if (! $class->getReflectionClass()) { |
|
288 | + if ( ! $class->getReflectionClass()) { |
|
289 | 289 | // only validate if there is a reflection class instance |
290 | 290 | return; |
291 | 291 | } |
@@ -629,7 +629,7 @@ discard block |
||
629 | 629 | |
630 | 630 | private function completeFieldIdentifierGeneratorMapping(FieldMetadata $field) |
631 | 631 | { |
632 | - if (!$field->hasValueGenerator()) { |
|
632 | + if ( ! $field->hasValueGenerator()) { |
|
633 | 633 | return; |
634 | 634 | } |
635 | 635 | |
@@ -696,7 +696,7 @@ discard block |
||
696 | 696 | break; |
697 | 697 | |
698 | 698 | default: |
699 | - throw new ORMException("Unknown generator type: " . $generator->getType()); |
|
699 | + throw new ORMException("Unknown generator type: ".$generator->getType()); |
|
700 | 700 | } |
701 | 701 | } |
702 | 702 | |
@@ -721,7 +721,7 @@ discard block |
||
721 | 721 | */ |
722 | 722 | protected function getFqcnFromAlias($namespaceAlias, $simpleClassName) |
723 | 723 | { |
724 | - return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName; |
|
724 | + return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName; |
|
725 | 725 | } |
726 | 726 | |
727 | 727 | /** |
@@ -745,7 +745,7 @@ discard block |
||
745 | 745 | */ |
746 | 746 | private function getTargetPlatform() |
747 | 747 | { |
748 | - if (!$this->targetPlatform) { |
|
748 | + if ( ! $this->targetPlatform) { |
|
749 | 749 | $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform(); |
750 | 750 | } |
751 | 751 | |
@@ -755,7 +755,7 @@ discard block |
||
755 | 755 | private function buildValueGenerationPlan(ClassMetadata $class): void |
756 | 756 | { |
757 | 757 | /** @var LocalColumnMetadata[] $generatedProperties */ |
758 | - $generatedProperties = array_filter($class->getProperties(), function (Property $property): bool { |
|
758 | + $generatedProperties = array_filter($class->getProperties(), function(Property $property): bool { |
|
759 | 759 | return $property instanceof LocalColumnMetadata && $property->hasValueGenerator(); |
760 | 760 | }); |
761 | 761 | $propertiesCount = count($generatedProperties); |
@@ -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; |
7 | 7 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param string $className |
39 | 39 | * @param MappedSuperClassMetadata|null $parent |
40 | 40 | */ |
41 | - public function __construct(string $name, string $className, ?MappedSuperClassMetadata $parent = null) |
|
41 | + public function __construct(string $name, string $className, ? MappedSuperClassMetadata $parent = null) |
|
42 | 42 | { |
43 | 43 | parent::__construct($className, $parent); |
44 | 44 |
@@ -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 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | public function __construct( |
35 | 35 | string $entityClassName, |
36 | 36 | string $metadataClassName, |
37 | - ?ClassMetadata $parentMetadata = null |
|
37 | + ? ClassMetadata $parentMetadata = null |
|
38 | 38 | ) |
39 | 39 | { |
40 | 40 | $this->entityClassName = $entityClassName; |
@@ -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\Strategy; |
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\Strategy; |
7 | 7 |