@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | { |
81 | 81 | $rms = $this->_rsm; |
82 | 82 | |
83 | - $this->_rsm->addEntityResult(CmsUser::class,'u'); |
|
84 | - $this->_rsm->addJoinedEntityResult(CmsPhonenumber::class,'p','u','phonenumbers'); |
|
83 | + $this->_rsm->addEntityResult(CmsUser::class, 'u'); |
|
84 | + $this->_rsm->addJoinedEntityResult(CmsPhonenumber::class, 'p', 'u', 'phonenumbers'); |
|
85 | 85 | $this->_rsm->addFieldResult('u', 'id', 'id'); |
86 | 86 | $this->_rsm->addFieldResult('u', 'name', 'name'); |
87 | 87 | $this->_rsm->setDiscriminatorColumn('name', 'name'); |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | |
278 | 278 | public function testIdentifierTypeForScalarExpression() : void |
279 | 279 | { |
280 | - $rsm = (new Parser($this->_em->createQuery('SELECT e.id4 FROM ' . AuxiliaryEntity::class . ' e'))) |
|
280 | + $rsm = (new Parser($this->_em->createQuery('SELECT e.id4 FROM '.AuxiliaryEntity::class.' e'))) |
|
281 | 281 | ->parse() |
282 | 282 | ->getResultSetMapping(); |
283 | 283 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | |
288 | 288 | public function testIdentifierTypeForRootEntityColumnThatHasAssociationAsIdentifier() : void |
289 | 289 | { |
290 | - $rsm = (new Parser($this->_em->createQuery('SELECT e FROM ' . OwningManyToOneIdForeignKeyEntity::class . ' e'))) |
|
290 | + $rsm = (new Parser($this->_em->createQuery('SELECT e FROM '.OwningManyToOneIdForeignKeyEntity::class.' e'))) |
|
291 | 291 | ->parse() |
292 | 292 | ->getResultSetMapping(); |
293 | 293 | |
@@ -302,8 +302,8 @@ discard block |
||
302 | 302 | { |
303 | 303 | $this->_rsm->addEntityResult(LegacyUser::class, 'u'); |
304 | 304 | $this->_rsm->addJoinedEntityResult(LegacyUserReference::class, 'lu', 'u', '_references'); |
305 | - $this->_rsm->addMetaResult('lu', '_source', '_source', true, 'integer'); |
|
306 | - $this->_rsm->addMetaResult('lu', '_target', '_target', true, 'integer'); |
|
305 | + $this->_rsm->addMetaResult('lu', '_source', '_source', true, 'integer'); |
|
306 | + $this->_rsm->addMetaResult('lu', '_target', '_target', true, 'integer'); |
|
307 | 307 | $this->_rsm->addIndexBy('lu', '_source'); |
308 | 308 | |
309 | 309 | $this->assertTrue($this->_rsm->hasIndexBy('lu')); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | parent::setUp(); |
48 | 48 | |
49 | - if (! Type::hasType(GH7820LineTextType::class)) { |
|
49 | + if ( ! Type::hasType(GH7820LineTextType::class)) { |
|
50 | 50 | Type::addType(GH7820LineTextType::class, GH7820LineTextType::class); |
51 | 51 | } |
52 | 52 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | self::assertSame( |
69 | 69 | self::SONG, |
70 | - array_map(static function (GH7820Line $line) : string { |
|
70 | + array_map(static function(GH7820Line $line) : string { |
|
71 | 71 | return $line->toString(); |
72 | 72 | }, iterator_to_array(new Paginator($query))) |
73 | 73 | ); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | public function __toString() : string |
126 | 126 | { |
127 | - return 'Line: ' . $this->text; |
|
127 | + return 'Line: '.$this->text; |
|
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | { |
135 | 135 | $text = parent::convertToPHPValue($value, $platform); |
136 | 136 | |
137 | - if (! \is_string($text)) { |
|
137 | + if ( ! \is_string($text)) { |
|
138 | 138 | return $text; |
139 | 139 | } |
140 | 140 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
145 | 145 | { |
146 | - if (! $value instanceof GH7820LineText) { |
|
146 | + if ( ! $value instanceof GH7820LineText) { |
|
147 | 147 | return parent::convertToDatabaseValue($value, $platform); |
148 | 148 | } |
149 | 149 |
@@ -164,7 +164,7 @@ |
||
164 | 164 | $em = $subQuery->getEntityManager(); |
165 | 165 | $connection = $em->getConnection(); |
166 | 166 | $idType = $this->getIdentifiersQueryScalarResultType($subQuery, $em); |
167 | - $ids = array_map(static function (array $row) use ($connection, $idType) { |
|
167 | + $ids = array_map(static function(array $row) use ($connection, $idType) { |
|
168 | 168 | return $connection->convertToDatabaseValue(current($row), $idType); |
169 | 169 | }, $foundIdRows); |
170 | 170 |