Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/OptimisticLockException.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\ORM;
6 6
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $expectedLockVersion = ($expectedLockVersion instanceof \DateTime) ? $expectedLockVersion->getTimestamp() : $expectedLockVersion;
62 62
         $actualLockVersion = ($actualLockVersion instanceof \DateTime) ? $actualLockVersion->getTimestamp() : $actualLockVersion;
63 63
 
64
-        return new self("The optimistic lock failed, version " . $expectedLockVersion . " was expected, but is actually ".$actualLockVersion, $entity);
64
+        return new self("The optimistic lock failed, version ".$expectedLockVersion." was expected, but is actually ".$actualLockVersion, $entity);
65 65
     }
66 66
 
67 67
     /**
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public static function notVersioned($entityName)
73 73
     {
74
-        return new self("Cannot obtain optimistic lock on unversioned entity " . $entityName, null);
74
+        return new self("Cannot obtain optimistic lock on unversioned entity ".$entityName, null);
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityRepository.php 1 patch
Spacing   +4 added lines, -4 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;
6 6
 
@@ -292,14 +292,14 @@  discard block
 block discarded – undo
292 292
      */
293 293
     private function resolveMagicCall($method, $by, array $arguments)
294 294
     {
295
-        if (! $arguments) {
296
-            throw ORMException::findByRequiresParameter($method . $by);
295
+        if ( ! $arguments) {
296
+            throw ORMException::findByRequiresParameter($method.$by);
297 297
         }
298 298
 
299 299
         $fieldName = lcfirst(Inflector::classify($by));
300 300
 
301 301
         if (null === $this->class->getProperty($fieldName)) {
302
-            throw ORMException::invalidMagicCall($this->entityName, $fieldName, $method . $by);
302
+            throw ORMException::invalidMagicCall($this->entityName, $fieldName, $method.$by);
303 303
         }
304 304
 
305 305
         return $this->$method([$fieldName => $arguments[0]], ...array_slice($arguments, 1));
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/UuidGenerator.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\ORM\Sequencing;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function generate(EntityManager $em, $entity)
21 21
     {
22 22
         $conn = $em->getConnection();
23
-        $sql = 'SELECT ' . $conn->getDatabasePlatform()->getGuidExpression();
23
+        $sql = 'SELECT '.$conn->getDatabasePlatform()->getGuidExpression();
24 24
 
25 25
         return $conn->query($sql)->fetchColumn(0);
26 26
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Sequencing;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/BigIntegerIdentityGenerator.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\ORM\Sequencing;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/TableGenerator.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\ORM\Sequencing;
6 6
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                         $this->tableName, $this->sequenceName, $this->allocationSize
78 78
                     );
79 79
 
80
-                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel+1]) !== 1) {
80
+                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel + 1]) !== 1) {
81 81
                         // no affected rows, concurrency issue, throw exception
82 82
                     }
83 83
                 } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/SequenceGenerator.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\ORM\Sequencing;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/CompositeValueGenerationPlan.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Sequencing\Planning;
7 7
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function executeDeferred(EntityManagerInterface $entityManager, /*object*/ $entity): void
41 41
     {
42 42
         foreach ($this->executors as $executor) {
43
-            if (! $executor->isDeferred()) {
43
+            if ( ! $executor->isDeferred()) {
44 44
                 continue;
45 45
             }
46 46
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/NoopValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Sequencing\Planning;
7 7
 
Please login to merge, or discard this patch.