@@ -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 |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | [$pathExpression] |
108 | 108 | ); |
109 | 109 | $expression = new InExpression($arithmeticExpression); |
110 | - $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS); |
|
110 | + $expression->literals[] = new InputParameter(":".self::PAGINATOR_ID_ALIAS); |
|
111 | 111 | |
112 | 112 | $this->convertWhereInIdentifiersToDatabaseValue($this->getTypeOfSingleIdentifierColumn($rootClass)); |
113 | 113 | } else { |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | ->getEntityManager() |
170 | 170 | ->getConnection(); |
171 | 171 | |
172 | - $query->setParameter(self::PAGINATOR_ID_ALIAS, array_map(static function ($id) use ($connection, $type) { |
|
172 | + $query->setParameter(self::PAGINATOR_ID_ALIAS, array_map(static function($id) use ($connection, $type) { |
|
173 | 173 | return $connection->convertToDatabaseValue($id, $type); |
174 | 174 | }, $identifiers)); |
175 | 175 | } |
@@ -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); |