@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | $targetEntity = current( |
226 | 226 | array_filter( |
227 | 227 | $classes, |
228 | - function (ClassMetadata $class) use ($idMapping) : bool { |
|
228 | + function(ClassMetadata $class) use ($idMapping) : bool { |
|
229 | 229 | return $class->name === $idMapping['targetEntity']; |
230 | 230 | } |
231 | 231 | ) |
@@ -645,8 +645,8 @@ discard block |
||
645 | 645 | |
646 | 646 | if ( ! $definingClass) { |
647 | 647 | throw new \Doctrine\ORM\ORMException( |
648 | - 'Column name `' . $joinColumn['referencedColumnName'] . '` referenced for relation from ' |
|
649 | - . $mapping['sourceEntity'] . ' towards ' . $mapping['targetEntity'] . ' does not exist.' |
|
648 | + 'Column name `'.$joinColumn['referencedColumnName'].'` referenced for relation from ' |
|
649 | + . $mapping['sourceEntity'].' towards '.$mapping['targetEntity'].' does not exist.' |
|
650 | 650 | ); |
651 | 651 | } |
652 | 652 | |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | |
711 | 711 | $compositeName = $theJoinTable->getName().'.'.implode('', $localColumns); |
712 | 712 | |
713 | - if (! $this->platform->supportsForeignKeyConstraints()) { |
|
713 | + if ( ! $this->platform->supportsForeignKeyConstraints()) { |
|
714 | 714 | return; |
715 | 715 | } |
716 | 716 | |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | */ |
747 | 747 | private function gatherColumnOptions(array $mapping) : array |
748 | 748 | { |
749 | - if (! isset($mapping['options'])) { |
|
749 | + if ( ! isset($mapping['options'])) { |
|
750 | 750 | return []; |
751 | 751 | } |
752 | 752 | |
@@ -852,7 +852,7 @@ discard block |
||
852 | 852 | if ($table->hasPrimaryKey()) { |
853 | 853 | $columns = $table->getPrimaryKey()->getColumns(); |
854 | 854 | if (count($columns) == 1) { |
855 | - $checkSequence = $table->getName() . '_' . $columns[0] . '_seq'; |
|
855 | + $checkSequence = $table->getName().'_'.$columns[0].'_seq'; |
|
856 | 856 | if ($fullSchema->hasSequence($checkSequence)) { |
857 | 857 | $visitor->acceptSequence($fullSchema->getSequence($checkSequence)); |
858 | 858 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function referenceColumnName() |
114 | 114 | { |
115 | - return $this->case === CASE_UPPER ? 'ID' : 'id'; |
|
115 | + return $this->case === CASE_UPPER ? 'ID' : 'id'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function joinColumnName($propertyName, $className = null) |
122 | 122 | { |
123 | - return $this->underscore($propertyName, self::PATTERN_FOR_PROPERTIES) . '_' . $this->referenceColumnName(); |
|
123 | + return $this->underscore($propertyName, self::PATTERN_FOR_PROPERTIES).'_'.$this->referenceColumnName(); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | */ |
129 | 129 | public function joinTableName($sourceEntity, $targetEntity, $propertyName = null) |
130 | 130 | { |
131 | - return $this->classToTableName($sourceEntity) . '_' . $this->classToTableName($targetEntity); |
|
131 | + return $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity); |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function joinKeyColumnName($entityName, $referencedColumnName = null) |
138 | 138 | { |
139 | - return $this->classToTableName($entityName) . '_' . |
|
139 | + return $this->classToTableName($entityName).'_'. |
|
140 | 140 | ($referencedColumnName ?: $this->referenceColumnName()); |
141 | 141 | } |
142 | 142 |