@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping\Factory; |
7 | 7 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping\Factory; |
7 | 7 | |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | private function getOrCreateClassMetadataDefinition(string $className, ?ClassMetadata $parent) : ClassMetadataDefinition |
183 | 183 | { |
184 | - if (! isset($this->definitions[$className])) { |
|
184 | + if ( ! isset($this->definitions[$className])) { |
|
185 | 185 | $this->definitions[$className] = $this->definitionFactory->build($className, $parent); |
186 | 186 | } |
187 | 187 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping\Factory; |
7 | 7 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | { |
43 | 43 | $definition = $this->createDefinition($className, $parentMetadata); |
44 | 44 | |
45 | - if (! class_exists($definition->metadataClassName, false)) { |
|
45 | + if ( ! class_exists($definition->metadataClassName, false)) { |
|
46 | 46 | $metadataClassPath = $this->resolver->resolveMetadataClassPath($className); |
47 | 47 | |
48 | 48 | $this->generatorStrategy->generate($metadataClassPath, $definition); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * <http://www.doctrine-project.org>. |
19 | 19 | */ |
20 | 20 | |
21 | -declare(strict_types=1); |
|
21 | +declare(strict_types = 1); |
|
22 | 22 | |
23 | 23 | namespace Doctrine\ORM\Mapping; |
24 | 24 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function getQuotedQualifiedName(AbstractPlatform $platform) : string |
87 | 87 | { |
88 | - if (!$this->schema) { |
|
88 | + if ( ! $this->schema) { |
|
89 | 89 | return $platform->quoteIdentifier($this->name); |
90 | 90 | } |
91 | 91 | |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | */ |
173 | 173 | public function addIndex(array $index) : void |
174 | 174 | { |
175 | - if (! isset($index['name'])) { |
|
175 | + if ( ! isset($index['name'])) { |
|
176 | 176 | $this->indexes[] = $index; |
177 | 177 | |
178 | 178 | return; |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | */ |
215 | 215 | public function addUniqueConstraint(array $constraint) : void |
216 | 216 | { |
217 | - if (! isset($constraint['name'])) { |
|
217 | + if ( ! isset($constraint['name'])) { |
|
218 | 218 | $this->uniqueConstraints[] = $constraint; |
219 | 219 | |
220 | 220 | return; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 | |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | */ |
297 | 297 | public function getNamedQuery($queryName) : string |
298 | 298 | { |
299 | - if (! isset($this->namedQueries[$queryName])) { |
|
299 | + if ( ! isset($this->namedQueries[$queryName])) { |
|
300 | 300 | throw MappingException::queryNotFound($this->entityName, $queryName); |
301 | 301 | } |
302 | 302 | |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | */ |
327 | 327 | public function getNamedNativeQuery($queryName) : array |
328 | 328 | { |
329 | - if (! isset($this->namedNativeQueries[$queryName])) { |
|
329 | + if ( ! isset($this->namedNativeQueries[$queryName])) { |
|
330 | 330 | throw MappingException::queryNotFound($this->entityName, $queryName); |
331 | 331 | } |
332 | 332 | |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | */ |
357 | 357 | public function getSqlResultSetMapping($name) : array |
358 | 358 | { |
359 | - if (! isset($this->sqlResultSetMappings[$name])) { |
|
359 | + if ( ! isset($this->sqlResultSetMappings[$name])) { |
|
360 | 360 | throw MappingException::resultMappingNotFound($this->entityName, $name); |
361 | 361 | } |
362 | 362 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools\Pagination; |
6 | 6 | |
@@ -194,11 +194,11 @@ discard block |
||
194 | 194 | |
195 | 195 | $innerSql = $this->getInnerSQL($AST); |
196 | 196 | $sqlIdentifier = $this->getSQLIdentifier($AST); |
197 | - $sqlAliasIdentifier = array_map(function ($info) { return $info['alias']; }, $sqlIdentifier); |
|
197 | + $sqlAliasIdentifier = array_map(function($info) { return $info['alias']; }, $sqlIdentifier); |
|
198 | 198 | |
199 | 199 | if ($hasOrderBy) { |
200 | - $orderGroupBy = ' GROUP BY ' . implode(', ', $sqlAliasIdentifier); |
|
201 | - $sqlPiece = 'MIN(' . $this->walkResultVariable('dctrn_rownum') . ') AS dctrn_minrownum'; |
|
200 | + $orderGroupBy = ' GROUP BY '.implode(', ', $sqlAliasIdentifier); |
|
201 | + $sqlPiece = 'MIN('.$this->walkResultVariable('dctrn_rownum').') AS dctrn_minrownum'; |
|
202 | 202 | |
203 | 203 | $sqlAliasIdentifier[] = $sqlPiece; |
204 | 204 | $sqlIdentifier[] = [ |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $sql = sprintf('SELECT DISTINCT %s FROM (%s) dctrn_result', implode(', ', $sqlAliasIdentifier), $innerSql); |
212 | 212 | |
213 | 213 | if ($hasOrderBy) { |
214 | - $sql .= $orderGroupBy . $outerOrderBy; |
|
214 | + $sql .= $orderGroupBy.$outerOrderBy; |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | // Apply the limit and offset. |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | |
257 | 257 | $innerSql = $this->getInnerSQL($AST); |
258 | 258 | $sqlIdentifier = $this->getSQLIdentifier($AST); |
259 | - $sqlAliasIdentifier = array_map(function ($info) { return $info['alias']; }, $sqlIdentifier); |
|
259 | + $sqlAliasIdentifier = array_map(function($info) { return $info['alias']; }, $sqlIdentifier); |
|
260 | 260 | |
261 | 261 | // Build the counter query |
262 | 262 | $sql = sprintf('SELECT DISTINCT %s FROM (%s) dctrn_result', implode(', ', $sqlAliasIdentifier), $innerSql); |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | ?OrderByClause $orderByClause |
365 | 365 | ) : string { |
366 | 366 | // If the sql statement has an order by clause, we need to wrap it in a new select distinct statement |
367 | - if (! $orderByClause) { |
|
367 | + if ( ! $orderByClause) { |
|
368 | 368 | return $sql; |
369 | 369 | } |
370 | 370 | |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | $orderByItems[] = $orderByItemString; |
407 | 407 | $identifier = \substr($orderByItemString, 0, \strrpos($orderByItemString, ' ')); |
408 | 408 | |
409 | - if (! \in_array($identifier, $identifiers, true)) { |
|
409 | + if ( ! \in_array($identifier, $identifiers, true)) { |
|
410 | 410 | $identifiers[] = $identifier; |
411 | 411 | } |
412 | 412 | } |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | */ |
563 | 563 | public function walkPathExpression($pathExpr) |
564 | 564 | { |
565 | - if (!$this->inSubSelect && !$this->platformSupportsRowNumber() && !in_array($pathExpr, $this->orderByPathExpressions)) { |
|
565 | + if ( ! $this->inSubSelect && ! $this->platformSupportsRowNumber() && ! in_array($pathExpr, $this->orderByPathExpressions)) { |
|
566 | 566 | $this->orderByPathExpressions[] = $pathExpr; |
567 | 567 | } |
568 | 568 |