Completed
Pull Request — master (#7399)
by
unknown
312:43 queued 302:08
created
lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
     ) {
143 143
         $this->reverseEngineerMappingFromDatabase();
144 144
 
145
-        if (! isset($this->classToTableNames[$className])) {
146
-            throw new \InvalidArgumentException('Unknown class ' . $className);
145
+        if ( ! isset($this->classToTableNames[$className])) {
146
+            throw new \InvalidArgumentException('Unknown class '.$className);
147 147
         }
148 148
 
149 149
         // @todo guilhermeblanco This should somehow disappear... =)
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         foreach ($this->manyToManyTables as $manyTable) {
159 159
             foreach ($manyTable->getForeignKeys() as $foreignKey) {
160 160
                 // foreign key maps to the table of the current entity, many to many association probably exists
161
-                if (! ($loweredTableName === strtolower($foreignKey->getForeignTableName()))) {
161
+                if ( ! ($loweredTableName === strtolower($foreignKey->getForeignTableName()))) {
162 162
                     continue;
163 163
                 }
164 164
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                     }
174 174
                 }
175 175
 
176
-                if (! $otherFk) {
176
+                if ( ! $otherFk) {
177 177
                     // the definition of this many to many table does not contain
178 178
                     // enough foreign key information to continue reverse engineering.
179 179
                     continue;
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                 $allForeignKeyColumns = array_merge($allForeignKeyColumns, $foreignKey->getLocalColumns());
255 255
             }
256 256
             if ( ! $table->hasPrimaryKey()) {
257
-                if(! $table->hasColumn('id')){
257
+                if ( ! $table->hasColumn('id')) {
258 258
                     $table->addColumn('id', 'integer', array('autoincrement' => true));
259 259
                 }
260 260
                 $table->setPrimaryKey(array('id'));
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
             }
448 448
 
449 449
             // Here we need to check if $fkColumns are the same as $primaryKeys
450
-            if (! array_diff($fkColumns, $primaryKeys)) {
450
+            if ( ! array_diff($fkColumns, $primaryKeys)) {
451 451
                 $metadata->addProperty($associationMapping);
452 452
             } else {
453 453
                 $metadata->addProperty($associationMapping);
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
      */
493 493
     private function getClassNameForTable($tableName)
494 494
     {
495
-        return $this->namespace . (
495
+        return $this->namespace.(
496 496
             $this->classNamesForTables[$tableName]
497 497
                 ?? Inflector::classify(strtolower($tableName))
498 498
         );
Please login to merge, or discard this patch.