@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $idMapping = $class->associationMappings[$identifierField]; |
222 | 222 | $targetEntity = current(array_filter( |
223 | 223 | $classes, |
224 | - function ($class) use ($idMapping) { |
|
224 | + function($class) use ($idMapping) { |
|
225 | 225 | return $class->name === $idMapping['targetEntity']; |
226 | 226 | })); |
227 | 227 | foreach ($idMapping['joinColumns'] as $joinColumn) { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | } |
240 | 240 | } |
241 | 241 | } |
242 | - if (!empty($inheritedKeyColumns)) { |
|
242 | + if ( ! empty($inheritedKeyColumns)) { |
|
243 | 243 | // Add a FK constraint on the ID column |
244 | 244 | $table->addForeignKeyConstraint( |
245 | 245 | $this->quoteStrategy->getTableName( |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | ['onDelete' => 'CASCADE'] |
252 | 252 | ); |
253 | 253 | } |
254 | - if (!empty($pkColumns)) { |
|
254 | + if ( ! empty($pkColumns)) { |
|
255 | 255 | $table->setPrimaryKey($pkColumns); |
256 | 256 | } |
257 | 257 | } |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | } |
346 | 346 | } |
347 | 347 | |
348 | - if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas() ) { |
|
348 | + if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) { |
|
349 | 349 | $schema->visit(new RemoveNamespacedAssets()); |
350 | 350 | } |
351 | 351 | |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | if ( ! $definingClass) { |
650 | 650 | throw new \Doctrine\ORM\ORMException( |
651 | 651 | "Column name `".$joinColumn['referencedColumnName']."` referenced for relation from ". |
652 | - $mapping['sourceEntity'] . " towards ". $mapping['targetEntity'] . " does not exist." |
|
652 | + $mapping['sourceEntity']." towards ".$mapping['targetEntity']." does not exist." |
|
653 | 653 | ); |
654 | 654 | } |
655 | 655 | |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | $columnOptions = ['notnull' => false, 'columnDefinition' => $columnDef]; |
682 | 682 | |
683 | 683 | if (isset($joinColumn['nullable'])) { |
684 | - $columnOptions['notnull'] = !$joinColumn['nullable']; |
|
684 | + $columnOptions['notnull'] = ! $joinColumn['nullable']; |
|
685 | 685 | } |
686 | 686 | |
687 | 687 | if (isset($fieldMapping['options'])) { |
@@ -728,7 +728,7 @@ discard block |
||
728 | 728 | } |
729 | 729 | } |
730 | 730 | $blacklistedFks[$compositeName] = true; |
731 | - } elseif (!isset($blacklistedFks[$compositeName])) { |
|
731 | + } elseif ( ! isset($blacklistedFks[$compositeName])) { |
|
732 | 732 | $addedFks[$compositeName] = ['foreignTableName' => $foreignTableName, 'foreignColumns' => $foreignColumns]; |
733 | 733 | $theJoinTable->addUnnamedForeignKeyConstraint( |
734 | 734 | $foreignTableName, |
@@ -835,7 +835,7 @@ discard block |
||
835 | 835 | if ($table->hasPrimaryKey()) { |
836 | 836 | $columns = $table->getPrimaryKey()->getColumns(); |
837 | 837 | if (count($columns) == 1) { |
838 | - $checkSequence = $table->getName() . "_" . $columns[0] . "_seq"; |
|
838 | + $checkSequence = $table->getName()."_".$columns[0]."_seq"; |
|
839 | 839 | if ($fullSchema->hasSequence($checkSequence)) { |
840 | 840 | $visitor->acceptSequence($fullSchema->getSequence($checkSequence)); |
841 | 841 | } |