@@ -142,8 +142,8 @@ discard block |
||
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... =) |
@@ -173,7 +173,7 @@ discard block |
||
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,9 +254,9 @@ discard block |
||
254 | 254 | $allForeignKeyColumns = array_merge($allForeignKeyColumns, $foreignKey->getLocalColumns()); |
255 | 255 | } |
256 | 256 | |
257 | - if (! $table->hasPrimaryKey()) { |
|
257 | + if ( ! $table->hasPrimaryKey()) { |
|
258 | 258 | throw new Mapping\MappingException( |
259 | - 'Table ' . $table->getName() . ' has no primary key. Doctrine does not ' . |
|
259 | + 'Table '.$table->getName().' has no primary key. Doctrine does not '. |
|
260 | 260 | "support reverse engineering from tables that don't have a primary key." |
261 | 261 | ); |
262 | 262 | } |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | } |
447 | 447 | |
448 | 448 | // Here we need to check if $fkColumns are the same as $primaryKeys |
449 | - if (! array_diff($fkColumns, $primaryKeys)) { |
|
449 | + if ( ! array_diff($fkColumns, $primaryKeys)) { |
|
450 | 450 | $metadata->addProperty($associationMapping); |
451 | 451 | } else { |
452 | 452 | $metadata->addProperty($associationMapping); |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | */ |
492 | 492 | private function getClassNameForTable($tableName) |
493 | 493 | { |
494 | - return $this->namespace . ( |
|
494 | + return $this->namespace.( |
|
495 | 495 | $this->classNamesForTables[$tableName] |
496 | 496 | ?? Inflector::classify(strtolower($tableName)) |
497 | 497 | ); |