@@ -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')); |
@@ -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 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | parent::setUp(); |
| 49 | 49 | |
| 50 | - if (! Type::hasType(GH7820LineTextType::class)) { |
|
| 50 | + if ( ! Type::hasType(GH7820LineTextType::class)) { |
|
| 51 | 51 | Type::addType(GH7820LineTextType::class, GH7820LineTextType::class); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | self::assertSame( |
| 70 | 70 | self::SONG, |
| 71 | - array_map(static function (GH7820Line $line) : string { |
|
| 71 | + array_map(static function(GH7820Line $line) : string { |
|
| 72 | 72 | return $line->toString(); |
| 73 | 73 | }, iterator_to_array(new Paginator($query))) |
| 74 | 74 | ); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | |
| 126 | 126 | public function __toString() : string |
| 127 | 127 | { |
| 128 | - return 'Line: ' . $this->text; |
|
| 128 | + return 'Line: '.$this->text; |
|
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | 131 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | $text = parent::convertToPHPValue($value, $platform); |
| 137 | 137 | |
| 138 | - if (! is_string($text)) { |
|
| 138 | + if ( ! is_string($text)) { |
|
| 139 | 139 | return $text; |
| 140 | 140 | } |
| 141 | 141 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
| 146 | 146 | { |
| 147 | - if (! $value instanceof GH7820LineText) { |
|
| 147 | + if ( ! $value instanceof GH7820LineText) { |
|
| 148 | 148 | return parent::convertToDatabaseValue($value, $platform); |
| 149 | 149 | } |
| 150 | 150 | |