@@ -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 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | { |
| 19 | 19 | parent::setUp(); |
| 20 | 20 | |
| 21 | - if (! Type::hasType('rot13')) { |
|
| 21 | + if ( ! Type::hasType('rot13')) { |
|
| 22 | 22 | Type::addType('rot13', Rot13Type::class); |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | public function testWhereInQueryWithArbitraryJoin_NoWhere() |
| 190 | 190 | { |
| 191 | - $whereInQuery = $this->entityManager->createQuery( |
|
| 191 | + $whereInQuery = $this->entityManager->createQuery( |
|
| 192 | 192 | 'SELECT p FROM Doctrine\Tests\ORM\Tools\Pagination\BlogPost p JOIN Doctrine\Tests\ORM\Tools\Pagination\Category c WITH p.category = c' |
| 193 | 193 | ); |
| 194 | 194 | $whereInQuery->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [WhereInWalker::class]); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | public function testWillReplaceBoundQueryIdentifiersWithConvertedTypesAsPerIdentifierMapping() : void |
| 228 | 228 | { |
| 229 | 229 | $whereInQuery = $this->entityManager->createQuery( |
| 230 | - 'SELECT e.id4 FROM ' . AuxiliaryEntity::class . ' e' |
|
| 230 | + 'SELECT e.id4 FROM '.AuxiliaryEntity::class.' e' |
|
| 231 | 231 | ); |
| 232 | 232 | $whereInQuery->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [WhereInWalker::class]); |
| 233 | 233 | $whereInQuery->setHint(WhereInWalker::HINT_PAGINATOR_ID_COUNT, 3); |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | public function testWillReplaceBoundQueryIdentifiersWithConvertedTypesAsPerAssociatedEntityIdentifierMapping() : void |
| 243 | 243 | { |
| 244 | 244 | $whereInQuery = $this->entityManager->createQuery( |
| 245 | - 'SELECT e FROM ' . OwningManyToOneIdForeignKeyEntity::class . ' e' |
|
| 245 | + 'SELECT e FROM '.OwningManyToOneIdForeignKeyEntity::class.' e' |
|
| 246 | 246 | ); |
| 247 | 247 | $whereInQuery->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [WhereInWalker::class]); |
| 248 | 248 | $whereInQuery->setHint(WhereInWalker::HINT_PAGINATOR_ID_COUNT, 3); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | [$pathExpression] |
| 109 | 109 | ); |
| 110 | 110 | $expression = new InExpression($arithmeticExpression); |
| 111 | - $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS); |
|
| 111 | + $expression->literals[] = new InputParameter(":".self::PAGINATOR_ID_ALIAS); |
|
| 112 | 112 | |
| 113 | 113 | $this->convertWhereInIdentifiersToDatabaseValue( |
| 114 | 114 | PersisterHelper::getTypeOfField( |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | ->getEntityManager() |
| 178 | 178 | ->getConnection(); |
| 179 | 179 | |
| 180 | - $query->setParameter(self::PAGINATOR_ID_ALIAS, array_map(static function ($id) use ($connection, $type) { |
|
| 180 | + $query->setParameter(self::PAGINATOR_ID_ALIAS, array_map(static function($id) use ($connection, $type) { |
|
| 181 | 181 | return $connection->convertToDatabaseValue($id, $type); |
| 182 | 182 | }, $identifiers)); |
| 183 | 183 | } |