Completed
Pull Request — master (#6027)
by Raul
10:49
created
lib/Doctrine/ORM/Tools/SchemaTool.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
                             $inheritedKeyColumns[] = $columnName;
238 238
                         }
239 239
                     }
240
-                    if (!empty($inheritedKeyColumns)) {
240
+                    if ( ! empty($inheritedKeyColumns)) {
241 241
                         // Add a FK constraint on the ID column
242 242
                         $table->addForeignKeyConstraint(
243 243
                             $this->quoteStrategy->getTableName(
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
             }
345 345
         }
346 346
 
347
-        if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas() ) {
347
+        if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) {
348 348
             $schema->visit(new RemoveNamespacedAssets());
349 349
         }
350 350
 
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 
419 419
         // For now, this is a hack required for single table inheritence, since this method is called
420 420
         // twice by single table inheritence relations
421
-        if (!$table->hasIndex('primary')) {
421
+        if ( ! $table->hasIndex('primary')) {
422 422
             //$table->setPrimaryKey($pkColumns);
423 423
         }
424 424
     }
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
      */
595 595
     private function isSchemaActionCreateOrUpdate($schemaAction)
596 596
     {
597
-        return in_array($schemaAction, array( self::SCHEMA_CREATE, self::SCHEMA_UPDATE));
597
+        return in_array($schemaAction, array(self::SCHEMA_CREATE, self::SCHEMA_UPDATE));
598 598
     }
599 599
 
600 600
     /**
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
             if ( ! $definingClass) {
677 677
                 throw new \Doctrine\ORM\ORMException(
678 678
                     "Column name `".$joinColumn['referencedColumnName']."` referenced for relation from ".
679
-                    $mapping['sourceEntity'] . " towards ". $mapping['targetEntity'] . " does not exist."
679
+                    $mapping['sourceEntity']." towards ".$mapping['targetEntity']." does not exist."
680 680
                 );
681 681
             }
682 682
 
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
                 $columnOptions = array('notnull' => false, 'columnDefinition' => $columnDef);
709 709
 
710 710
                 if (isset($joinColumn['nullable'])) {
711
-                    $columnOptions['notnull'] = !$joinColumn['nullable'];
711
+                    $columnOptions['notnull'] = ! $joinColumn['nullable'];
712 712
                 }
713 713
 
714 714
                 if (isset($fieldMapping['options'])) {
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
                 }
756 756
             }
757 757
             $blacklistedFks[$compositeName] = true;
758
-        } elseif (!isset($blacklistedFks[$compositeName])) {
758
+        } elseif ( ! isset($blacklistedFks[$compositeName])) {
759 759
             $addedFks[$compositeName] = array('foreignTableName' => $foreignTableName, 'foreignColumns' => $foreignColumns);
760 760
             $theJoinTable->addUnnamedForeignKeyConstraint(
761 761
                 $foreignTableName,
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
                 if ($table->hasPrimaryKey()) {
863 863
                     $columns = $table->getPrimaryKey()->getColumns();
864 864
                     if (count($columns) == 1) {
865
-                        $checkSequence = $table->getName() . "_" . $columns[0] . "_seq";
865
+                        $checkSequence = $table->getName()."_".$columns[0]."_seq";
866 866
                         if ($fullSchema->hasSequence($checkSequence)) {
867 867
                             $visitor->acceptSequence($fullSchema->getSequence($checkSequence));
868 868
                         }
Please login to merge, or discard this patch.