@@ -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\Tools; |
6 | 6 | |
@@ -178,11 +178,11 @@ discard block |
||
178 | 178 | $pkColumns = []; |
179 | 179 | |
180 | 180 | foreach ($class->getProperties() as $fieldName => $property) { |
181 | - if (! ($property instanceof FieldMetadata)) { |
|
181 | + if ( ! ($property instanceof FieldMetadata)) { |
|
182 | 182 | continue; |
183 | 183 | } |
184 | 184 | |
185 | - if (! $class->isInheritedProperty($fieldName)) { |
|
185 | + if ( ! $class->isInheritedProperty($fieldName)) { |
|
186 | 186 | $columnName = $this->platform->quoteIdentifier($property->getColumnName()); |
187 | 187 | |
188 | 188 | $this->gatherColumn($class, $property, $table); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | $processedClasses[$class->getClassName()] = true; |
325 | 325 | |
326 | 326 | foreach ($class->getProperties() as $property) { |
327 | - if (! $property instanceof FieldMetadata |
|
327 | + if ( ! $property instanceof FieldMetadata |
|
328 | 328 | || ! $property->hasValueGenerator() |
329 | 329 | || $property->getValueGenerator()->getType() !== GeneratorType::SEQUENCE |
330 | 330 | || $class->getClassName() !== $class->getRootClassName()) { |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | } |
347 | 347 | } |
348 | 348 | |
349 | - if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas() ) { |
|
349 | + if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) { |
|
350 | 350 | $schema->visit(new RemoveNamespacedAssets()); |
351 | 351 | } |
352 | 352 | |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | break; |
389 | 389 | } |
390 | 390 | |
391 | - if (!empty($discrColumn->getColumnDefinition())) { |
|
391 | + if ( ! empty($discrColumn->getColumnDefinition())) { |
|
392 | 392 | $options['columnDefinition'] = $discrColumn->getColumnDefinition(); |
393 | 393 | } |
394 | 394 | |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | $pkColumns = []; |
410 | 410 | |
411 | 411 | foreach ($class->getProperties() as $fieldName => $property) { |
412 | - if (! ($property instanceof FieldMetadata)) { |
|
412 | + if ( ! ($property instanceof FieldMetadata)) { |
|
413 | 413 | continue; |
414 | 414 | } |
415 | 415 | |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | private function gatherRelationsSql($class, $table, $schema, &$addedFks, &$blacklistedFks) |
528 | 528 | { |
529 | 529 | foreach ($class->getProperties() as $fieldName => $property) { |
530 | - if (! ($property instanceof AssociationMetadata)) { |
|
530 | + if ( ! ($property instanceof AssociationMetadata)) { |
|
531 | 531 | continue; |
532 | 532 | } |
533 | 533 | |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | continue; |
536 | 536 | } |
537 | 537 | |
538 | - if (! $property->isOwningSide()) { |
|
538 | + if ( ! $property->isOwningSide()) { |
|
539 | 539 | continue; |
540 | 540 | } |
541 | 541 | |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | $idColumns = $class->getIdentifierColumns($this->em); |
626 | 626 | $idColumnNameList = array_keys($idColumns); |
627 | 627 | |
628 | - if (! in_array($referencedColumnName, $idColumnNameList)) { |
|
628 | + if ( ! in_array($referencedColumnName, $idColumnNameList)) { |
|
629 | 629 | return null; |
630 | 630 | } |
631 | 631 | |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | foreach ($class->getIdentifierFieldNames() as $fieldName) { |
634 | 634 | $property = $class->getProperty($fieldName); |
635 | 635 | |
636 | - if (! ($property instanceof AssociationMetadata)) { |
|
636 | + if ( ! ($property instanceof AssociationMetadata)) { |
|
637 | 637 | continue; |
638 | 638 | } |
639 | 639 | |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | $property = $definingClass->getProperty($referencedFieldName); |
716 | 716 | $columnDef = null; |
717 | 717 | |
718 | - if (!empty($joinColumn->getColumnDefinition())) { |
|
718 | + if ( ! empty($joinColumn->getColumnDefinition())) { |
|
719 | 719 | $columnDef = $joinColumn->getColumnDefinition(); |
720 | 720 | } elseif ($property->getColumnDefinition()) { |
721 | 721 | $columnDef = $property->getColumnDefinition(); |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | |
724 | 724 | $columnType = $property->getTypeName(); |
725 | 725 | $columnOptions = [ |
726 | - 'notnull' => !$joinColumn->isNullable(), |
|
726 | + 'notnull' => ! $joinColumn->isNullable(), |
|
727 | 727 | 'columnDefinition' => $columnDef, |
728 | 728 | ]; |
729 | 729 | |
@@ -749,7 +749,7 @@ discard block |
||
749 | 749 | $uniqueConstraints[] = ['columns' => [$quotedColumnName]]; |
750 | 750 | } |
751 | 751 | |
752 | - if (!empty($joinColumn->getOnDelete())) { |
|
752 | + if ( ! empty($joinColumn->getOnDelete())) { |
|
753 | 753 | $fkOptions['onDelete'] = $joinColumn->getOnDelete(); |
754 | 754 | } |
755 | 755 | } |
@@ -777,7 +777,7 @@ discard block |
||
777 | 777 | } |
778 | 778 | |
779 | 779 | $blacklistedFks[$compositeName] = true; |
780 | - } elseif (!isset($blacklistedFks[$compositeName])) { |
|
780 | + } elseif ( ! isset($blacklistedFks[$compositeName])) { |
|
781 | 781 | $addedFks[$compositeName] = [ |
782 | 782 | 'foreignTableName' => $foreignTableName, |
783 | 783 | 'foreignColumns' => $foreignColumns |
@@ -888,7 +888,7 @@ discard block |
||
888 | 888 | if ($table->hasPrimaryKey()) { |
889 | 889 | $columns = $table->getPrimaryKey()->getColumns(); |
890 | 890 | if (count($columns) == 1) { |
891 | - $checkSequence = $table->getName() . "_" . $columns[0] . "_seq"; |
|
891 | + $checkSequence = $table->getName()."_".$columns[0]."_seq"; |
|
892 | 892 | if ($fullSchema->hasSequence($checkSequence)) { |
893 | 893 | $visitor->acceptSequence($fullSchema->getSequence($checkSequence)); |
894 | 894 | } |
@@ -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\ORM\Tools; |
6 | 6 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Doctrine\ORM\Tools\Event; |
5 | 5 |
@@ -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\ORM\Tools\Event; |
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\ORM\Tools\Export; |
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\ORM\Tools\Export; |
6 | 6 |
@@ -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\Tools\Export\Driver; |
6 | 6 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected function generateOutputPath(ClassMetadata $metadata) |
52 | 52 | { |
53 | - return $this->outputDir . '/' . str_replace('\\', '/', $metadata->getClassName()) . $this->extension; |
|
53 | + return $this->outputDir.'/'.str_replace('\\', '/', $metadata->getClassName()).$this->extension; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -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\Tools\Export\Driver; |
6 | 6 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | if ( ! is_dir($dir)) { |
127 | 127 | mkdir($dir, 0775, true); |
128 | 128 | } |
129 | - if (file_exists($path) && !$this->overwriteExistingFiles) { |
|
129 | + if (file_exists($path) && ! $this->overwriteExistingFiles) { |
|
130 | 130 | throw ExportException::attemptOverwriteExistingFile($path); |
131 | 131 | } |
132 | 132 | file_put_contents($path, $output); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | protected function generateOutputPath(ClassMetadata $metadata) |
146 | 146 | { |
147 | - return $this->outputDir . '/' . str_replace('\\', '.', $metadata->getClassName()) . $this->extension; |
|
147 | + return $this->outputDir.'/'.str_replace('\\', '.', $metadata->getClassName()).$this->extension; |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
@@ -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\Tools; |
6 | 6 | |
@@ -28,14 +28,14 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public static function registerAutoloadDirectory($directory) |
30 | 30 | { |
31 | - if (!class_exists('Doctrine\Common\ClassLoader', false)) { |
|
32 | - require_once $directory . "/Doctrine/Common/ClassLoader.php"; |
|
31 | + if ( ! class_exists('Doctrine\Common\ClassLoader', false)) { |
|
32 | + require_once $directory."/Doctrine/Common/ClassLoader.php"; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | $loader = new ClassLoader("Doctrine", $directory); |
36 | 36 | $loader->register(); |
37 | 37 | |
38 | - $loader = new ClassLoader('Symfony\Component', $directory . "/Doctrine"); |
|
38 | + $loader = new ClassLoader('Symfony\Component', $directory."/Doctrine"); |
|
39 | 39 | $loader->register(); |
40 | 40 | } |
41 | 41 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | if ($cache instanceof CacheProvider) { |
114 | - $cache->setNamespace("dc2_" . md5($proxyDir) . "_"); // to avoid collisions |
|
114 | + $cache->setNamespace("dc2_".md5($proxyDir)."_"); // to avoid collisions |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | $config = new Configuration(); |