Completed
Pull Request — master (#6433)
by Matthias
09:03
created
lib/Doctrine/ORM/Tools/SchemaTool.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                             $inheritedKeyColumns[] = $columnName;
224 224
                         }
225 225
                     }
226
-                    if (!empty($inheritedKeyColumns)) {
226
+                    if ( ! empty($inheritedKeyColumns)) {
227 227
                         // Add a FK constraint on the ID column
228 228
                         $table->addForeignKeyConstraint(
229 229
                             $this->quoteStrategy->getTableName(
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             }
331 331
         }
332 332
 
333
-        if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas() ) {
333
+        if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) {
334 334
             $schema->visit(new RemoveNamespacedAssets());
335 335
         }
336 336
 
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
             if ( ! $definingClass) {
636 636
                 throw new \Doctrine\ORM\ORMException(
637 637
                     "Column name `".$joinColumn['referencedColumnName']."` referenced for relation from ".
638
-                    $mapping['sourceEntity'] . " towards ". $mapping['targetEntity'] . " does not exist."
638
+                    $mapping['sourceEntity']." towards ".$mapping['targetEntity']." does not exist."
639 639
                 );
640 640
             }
641 641
 
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
                 $columnOptions = ['notnull' => false, 'columnDefinition' => $columnDef];
668 668
 
669 669
                 if (isset($joinColumn['nullable'])) {
670
-                    $columnOptions['notnull'] = !$joinColumn['nullable'];
670
+                    $columnOptions['notnull'] = ! $joinColumn['nullable'];
671 671
                 }
672 672
 
673 673
                 if (isset($fieldMapping['options'])) {
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
                 }
715 715
             }
716 716
             $blacklistedFks[$compositeName] = true;
717
-        } elseif (!isset($blacklistedFks[$compositeName])) {
717
+        } elseif ( ! isset($blacklistedFks[$compositeName])) {
718 718
             $addedFks[$compositeName] = ['foreignTableName' => $foreignTableName, 'foreignColumns' => $foreignColumns];
719 719
             $theJoinTable->addUnnamedForeignKeyConstraint(
720 720
                 $foreignTableName,
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
                 if ($table->hasPrimaryKey()) {
822 822
                     $columns = $table->getPrimaryKey()->getColumns();
823 823
                     if (count($columns) == 1) {
824
-                        $checkSequence = $table->getName() . "_" . $columns[0] . "_seq";
824
+                        $checkSequence = $table->getName()."_".$columns[0]."_seq";
825 825
                         if ($fullSchema->hasSequence($checkSequence)) {
826 826
                             $visitor->acceptSequence($fullSchema->getSequence($checkSequence));
827 827
                         }
Please login to merge, or discard this patch.