Completed
Push — master ( df0cc3...f351f5 )
by Luís
12s
created
tests/Doctrine/Tests/Mocks/DriverConnectionMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/ParameterTypeInfererTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.