@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\Mocks; |
6 | 6 |
@@ -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\Tests\ORM\Query; |
6 | 6 | |
@@ -15,16 +15,16 @@ discard block |
||
15 | 15 | public function providerParameterTypeInferer() |
16 | 16 | { |
17 | 17 | $data = [ |
18 | - [1, Type::INTEGER], |
|
19 | - ["bar", ParameterType::STRING], |
|
20 | - ["1", ParameterType::STRING], |
|
21 | - [new \DateTime, Type::DATETIME], |
|
18 | + [1, Type::INTEGER], |
|
19 | + ["bar", ParameterType::STRING], |
|
20 | + ["1", ParameterType::STRING], |
|
21 | + [new \DateTime, Type::DATETIME], |
|
22 | 22 | [new \DateInterval('P1D'), Type::DATEINTERVAL], |
23 | - [[2], Connection::PARAM_INT_ARRAY], |
|
24 | - [["foo"], Connection::PARAM_STR_ARRAY], |
|
25 | - [["1","2"], Connection::PARAM_STR_ARRAY], |
|
26 | - [[], Connection::PARAM_STR_ARRAY], |
|
27 | - [true, Type::BOOLEAN], |
|
23 | + [[2], Connection::PARAM_INT_ARRAY], |
|
24 | + [["foo"], Connection::PARAM_STR_ARRAY], |
|
25 | + [["1", "2"], Connection::PARAM_STR_ARRAY], |
|
26 | + [[], Connection::PARAM_STR_ARRAY], |
|
27 | + [true, Type::BOOLEAN], |
|
28 | 28 | ]; |
29 | 29 | |
30 | 30 | if (PHP_VERSION_ID >= 50500) { |
@@ -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\Internal\Hydration; |
6 | 6 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | { |
149 | 149 | $row = $this->stmt->fetch(FetchMode::ASSOCIATIVE); |
150 | 150 | |
151 | - if (! $row) { |
|
151 | + if ( ! $row) { |
|
152 | 152 | $this->cleanup(); |
153 | 153 | |
154 | 154 | return false; |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | : $value; |
292 | 292 | |
293 | 293 | if ($cacheKeyInfo['isIdentifier'] && $value !== null) { |
294 | - $id[$dqlAlias] .= '|' . $value; |
|
294 | + $id[$dqlAlias] .= '|'.$value; |
|
295 | 295 | $nonemptyComponents[$dqlAlias] = true; |
296 | 296 | } |
297 | 297 | break; |
@@ -327,10 +327,10 @@ discard block |
||
327 | 327 | |
328 | 328 | // WARNING: BC break! We know this is the desired behavior to type convert values, but this |
329 | 329 | // erroneous behavior exists since 2.0 and we're forced to keep compatibility. |
330 | - if (! isset($cacheKeyInfo['isScalar'])) { |
|
330 | + if ( ! isset($cacheKeyInfo['isScalar'])) { |
|
331 | 331 | $dqlAlias = $cacheKeyInfo['dqlAlias']; |
332 | 332 | $type = $cacheKeyInfo['type']; |
333 | - $fieldName = $dqlAlias . '_' . $fieldName; |
|
333 | + $fieldName = $dqlAlias.'_'.$fieldName; |
|
334 | 334 | $value = $type |
335 | 335 | ? $type->convertToPHPValue($value, $this->platform) |
336 | 336 | : $value; |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | */ |
437 | 437 | protected function getClassMetadata($className) |
438 | 438 | { |
439 | - if (! isset($this->metadataCache[$className])) { |
|
439 | + if ( ! isset($this->metadataCache[$className])) { |
|
440 | 440 | $this->metadataCache[$className] = $this->em->getClassMetadata($className); |
441 | 441 | } |
442 | 442 |