@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Performance\LazyLoading; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Performance\Mock; |
6 | 6 |
@@ -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; |
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\Exporter; |
7 | 7 |
@@ -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,13 +18,13 @@ discard block |
||
18 | 18 | { |
19 | 19 | /** @var JoinColumnMetadata $value */ |
20 | 20 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
21 | - $objectReference = $indentation . static::VARIABLE; |
|
21 | + $objectReference = $indentation.static::VARIABLE; |
|
22 | 22 | $lines = []; |
23 | 23 | |
24 | 24 | $lines[] = parent::export($value, $indentationLevel); |
25 | - $lines[] = $objectReference . '->setReferencedColumnName("' . $value->getReferencedColumnName() . '");'; |
|
26 | - $lines[] = $objectReference . '->setAliasedName("' . $value->getAliasedName() . '");'; |
|
27 | - $lines[] = $objectReference . '->setOnDelete("' . $value->getOnDelete() . '");'; |
|
25 | + $lines[] = $objectReference.'->setReferencedColumnName("'.$value->getReferencedColumnName().'");'; |
|
26 | + $lines[] = $objectReference.'->setAliasedName("'.$value->getAliasedName().'");'; |
|
27 | + $lines[] = $objectReference.'->setOnDelete("'.$value->getOnDelete().'");'; |
|
28 | 28 | |
29 | 29 | return implode(PHP_EOL, $lines); |
30 | 30 | } |
@@ -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 | |
@@ -20,33 +20,33 @@ discard block |
||
20 | 20 | $cacheExporter = new CacheMetadataExporter(); |
21 | 21 | $variableExporter = new VariableExporter(); |
22 | 22 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
23 | - $objectReference = $indentation . static::VARIABLE; |
|
23 | + $objectReference = $indentation.static::VARIABLE; |
|
24 | 24 | $cascade = $this->resolveCascade($value->getCascade()); |
25 | 25 | $lines = []; |
26 | 26 | |
27 | - $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value); |
|
27 | + $lines[] = $objectReference.' = '.$this->exportInstantiation($value); |
|
28 | 28 | |
29 | - if (! empty($value->getCache())) { |
|
29 | + if ( ! empty($value->getCache())) { |
|
30 | 30 | $lines[] = $cacheExporter->export($value->getCache(), $indentationLevel); |
31 | 31 | $lines[] = null; |
32 | - $lines[] = $objectReference . '->setCache(' . $cacheExporter::VARIABLE . ');'; |
|
32 | + $lines[] = $objectReference.'->setCache('.$cacheExporter::VARIABLE.');'; |
|
33 | 33 | } |
34 | 34 | |
35 | - if (! empty($value->getMappedBy())) { |
|
36 | - $lines[] = $objectReference . '->setMappedBy("' . $value->getMappedBy() . '");'; |
|
35 | + if ( ! empty($value->getMappedBy())) { |
|
36 | + $lines[] = $objectReference.'->setMappedBy("'.$value->getMappedBy().'");'; |
|
37 | 37 | } |
38 | 38 | |
39 | - if (! empty($value->getInversedBy())) { |
|
40 | - $lines[] = $objectReference . '->setInversedBy("' . $value->getInversedBy() . '");'; |
|
39 | + if ( ! empty($value->getInversedBy())) { |
|
40 | + $lines[] = $objectReference.'->setInversedBy("'.$value->getInversedBy().'");'; |
|
41 | 41 | } |
42 | 42 | |
43 | - $lines[] = $objectReference . '->setSourceEntity("' . $value->getSourceEntity() . '");'; |
|
44 | - $lines[] = $objectReference . '->setTargetEntity("' . $value->getTargetEntity() . '");'; |
|
45 | - $lines[] = $objectReference . '->setFetchMode(Mapping\FetchMode::' . strtoupper($value->getFetchMode()) . '");'; |
|
46 | - $lines[] = $objectReference . '->setCascade(' . $variableExporter->export($cascade, $indentationLevel + 1) . ');'; |
|
47 | - $lines[] = $objectReference . '->setOwningSide(' . $variableExporter->export($value->isOwningSide(), $indentationLevel + 1) . ');'; |
|
48 | - $lines[] = $objectReference . '->setOrphanRemoval(' . $variableExporter->export($value->isOrphanRemoval(), $indentationLevel + 1) . ');'; |
|
49 | - $lines[] = $objectReference . '->setPrimaryKey(' . $variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1) . ');'; |
|
43 | + $lines[] = $objectReference.'->setSourceEntity("'.$value->getSourceEntity().'");'; |
|
44 | + $lines[] = $objectReference.'->setTargetEntity("'.$value->getTargetEntity().'");'; |
|
45 | + $lines[] = $objectReference.'->setFetchMode(Mapping\FetchMode::'.strtoupper($value->getFetchMode()).'");'; |
|
46 | + $lines[] = $objectReference.'->setCascade('.$variableExporter->export($cascade, $indentationLevel + 1).');'; |
|
47 | + $lines[] = $objectReference.'->setOwningSide('.$variableExporter->export($value->isOwningSide(), $indentationLevel + 1).');'; |
|
48 | + $lines[] = $objectReference.'->setOrphanRemoval('.$variableExporter->export($value->isOrphanRemoval(), $indentationLevel + 1).');'; |
|
49 | + $lines[] = $objectReference.'->setPrimaryKey('.$variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1).');'; |
|
50 | 50 | |
51 | 51 | |
52 | 52 | return implode(PHP_EOL, $lines); |
@@ -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 | |
@@ -17,16 +17,16 @@ discard block |
||
17 | 17 | /** @var ToManyAssociationMetadata $value */ |
18 | 18 | $variableExporter = new VariableExporter(); |
19 | 19 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
20 | - $objectReference = $indentation . static::VARIABLE; |
|
20 | + $objectReference = $indentation.static::VARIABLE; |
|
21 | 21 | $lines = []; |
22 | 22 | |
23 | 23 | $lines[] = parent::export($value, $indentationLevel); |
24 | 24 | |
25 | - if (! empty($value->getIndexedBy())) { |
|
26 | - $lines[] = $objectReference . '->setIndexedBy("' . $value->getIndexedBy() . '"");'; |
|
25 | + if ( ! empty($value->getIndexedBy())) { |
|
26 | + $lines[] = $objectReference.'->setIndexedBy("'.$value->getIndexedBy().'"");'; |
|
27 | 27 | } |
28 | 28 | |
29 | - $lines[] = $objectReference . '->setOderBy(' . $variableExporter->export($value->getOrderBy(), $indentationLevel + 1) . ');'; |
|
29 | + $lines[] = $objectReference.'->setOderBy('.$variableExporter->export($value->getOrderBy(), $indentationLevel + 1).');'; |
|
30 | 30 | |
31 | 31 | return implode(PHP_EOL, $lines); |
32 | 32 | } |
@@ -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 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /** @var ToOneAssociationMetadata $value */ |
18 | 18 | $joinColumnExporter = new JoinColumnMetadataExporter(); |
19 | 19 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
20 | - $objectReference = $indentation . static::VARIABLE; |
|
20 | + $objectReference = $indentation.static::VARIABLE; |
|
21 | 21 | $lines = []; |
22 | 22 | |
23 | 23 | $lines[] = parent::export($value, $indentationLevel); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $lines[] = null; |
27 | 27 | $lines[] = $joinColumnExporter->export($joinColumn, $indentationLevel); |
28 | 28 | $lines[] = null; |
29 | - $lines[] = $objectReference . '->addJoinColumn(' . $joinColumnExporter::VARIABLE . ');'; |
|
29 | + $lines[] = $objectReference.'->addJoinColumn('.$joinColumnExporter::VARIABLE.');'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | return implode(PHP_EOL, $lines); |
@@ -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 | |
@@ -16,18 +16,18 @@ discard block |
||
16 | 16 | { |
17 | 17 | /** @var LocalColumnMetadata $value */ |
18 | 18 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
19 | - $objectReference = $indentation . static::VARIABLE; |
|
19 | + $objectReference = $indentation.static::VARIABLE; |
|
20 | 20 | $lines = []; |
21 | 21 | |
22 | 22 | $lines[] = parent::export($value, $indentationLevel); |
23 | 23 | |
24 | - $lines[] = $objectReference . '->setLength(' . $value->getLength() . ');'; |
|
25 | - $lines[] = $objectReference . '->setScale(' . $value->getScale() . ');'; |
|
26 | - $lines[] = $objectReference . '->setPrecision(' . $value->getPrecision() . ');'; |
|
24 | + $lines[] = $objectReference.'->setLength('.$value->getLength().');'; |
|
25 | + $lines[] = $objectReference.'->setScale('.$value->getScale().');'; |
|
26 | + $lines[] = $objectReference.'->setPrecision('.$value->getPrecision().');'; |
|
27 | 27 | |
28 | 28 | if ($value->hasValueGenerator()) { |
29 | 29 | $lines[] = sprintf( |
30 | - $objectReference . '->setValueGenerator(new ValueGenerator(%s, %s));', |
|
30 | + $objectReference.'->setValueGenerator(new ValueGenerator(%s, %s));', |
|
31 | 31 | var_export($value->getValueGenerator()->getType(), true), |
32 | 32 | var_export($value->getValueGenerator()->getDefinition(), true) |
33 | 33 | ); |