Passed
Pull Request — master (#7177)
by Jonathan
11:27
created
tests/Doctrine/Tests/DbalTypes/NegativeToPositiveType.php 1 patch
Spacing   +3 added lines, -3 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\DbalTypes;
6 6
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
42 42
     {
43
-        return 'ABS(' . $sqlExpr . ')';
43
+        return 'ABS('.$sqlExpr.')';
44 44
     }
45 45
 
46 46
     /**
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function convertToPHPValueSQL($sqlExpr, $platform)
50 50
     {
51
-        return '-(' . $sqlExpr . ')';
51
+        return '-('.$sqlExpr.')';
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalFunctionalTestCase.php 1 patch
Spacing   +2 added lines, -2 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;
6 6
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             return;
40 40
         }
41 41
         
42
-        if (! isset(self::$sharedConn)) {
42
+        if ( ! isset(self::$sharedConn)) {
43 43
             self::$sharedConn = TestUtil::getConnection();
44 44
         }
45 45
 
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Mock/NonProxyLoadingEntityManager.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\Performance\Mock;
6 6
 
Please login to merge, or discard this patch.
Performance/Hydration/SingleTableInheritanceHydrationPerformanceBench.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\Performance\Hydration;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Performance/Hydration/SimpleHydrationBench.php 1 patch
Spacing   +2 added lines, -2 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\Performance\Hydration;
6 6
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             $user = new CMS\CmsUser();
42 42
 
43 43
             $user->status   = 'developer';
44
-            $user->username = 'jwage' . $i;
44
+            $user->username = 'jwage'.$i;
45 45
             $user->name     = 'Jonathan';
46 46
 
47 47
             $this->entityManager->persist($user);
Please login to merge, or discard this patch.
tests/Doctrine/Performance/LazyLoading/ProxyInitializationTimeBench.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\Performance\LazyLoading;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,8 +213,8 @@
 block discarded – undo
213 213
         $this->metadataCache = [];
214 214
 
215 215
         $this->em
216
-             ->getEventManager()
217
-             ->removeEventListener([Events::onClear], $this);
216
+                ->getEventManager()
217
+                ->removeEventListener([Events::onClear], $this);
218 218
     }
219 219
 
220 220
     /**
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 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
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     {
151 151
         $row = $this->stmt->fetch(FetchMode::ASSOCIATIVE);
152 152
 
153
-        if (! $row) {
153
+        if ( ! $row) {
154 154
             $this->cleanup();
155 155
 
156 156
             return false;
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                         : $value;
293 293
 
294 294
                     if ($cacheKeyInfo['isIdentifier'] && $value !== null) {
295
-                        $id[$dqlAlias]                .= '|' . $value;
295
+                        $id[$dqlAlias]                .= '|'.$value;
296 296
                         $nonemptyComponents[$dqlAlias] = true;
297 297
                     }
298 298
                     break;
@@ -328,10 +328,10 @@  discard block
 block discarded – undo
328 328
 
329 329
             // WARNING: BC break! We know this is the desired behavior to type convert values, but this
330 330
             // erroneous behavior exists since 2.0 and we're forced to keep compatibility.
331
-            if (! isset($cacheKeyInfo['isScalar'])) {
331
+            if ( ! isset($cacheKeyInfo['isScalar'])) {
332 332
                 $dqlAlias  = $cacheKeyInfo['dqlAlias'];
333 333
                 $type      = $cacheKeyInfo['type'];
334
-                $fieldName = $dqlAlias . '_' . $fieldName;
334
+                $fieldName = $dqlAlias.'_'.$fieldName;
335 335
                 $value     = $type
336 336
                     ? $type->convertToPHPValue($value, $this->platform)
337 337
                     : $value;
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
     private function getDiscriminatorValues(ClassMetadata $classMetadata) : array
436 436
     {
437 437
         $values = array_map(
438
-            function (string $subClass) : string {
438
+            function(string $subClass) : string {
439 439
                 return (string) $this->getClassMetadata($subClass)->discriminatorValue;
440 440
             },
441 441
             $classMetadata->getSubClasses()
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
      */
456 456
     protected function getClassMetadata($className)
457 457
     {
458
-        if (! isset($this->metadataCache[$className])) {
458
+        if ( ! isset($this->metadataCache[$className])) {
459 459
             $this->metadataCache[$className] = $this->em->getClassMetadata($className);
460 460
         }
461 461
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/ConfigurationTest.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\ORM;
6 6
 
Please login to merge, or discard this patch.
Tests/ORM/Persisters/BasicEntityPersisterCompositeTypeParametersTest.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\ORM\Persisters;
6 6
 
Please login to merge, or discard this patch.