Failed Conditions
Pull Request — master (#6767)
by Tyler
15:17
created
lib/Doctrine/ORM/Tools/SchemaTool.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                         }
Please login to merge, or discard this patch.