@@ -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; |
6 | 6 | |
@@ -61,7 +61,7 @@ discard block |
||
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 |
||
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 | } |
@@ -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; |
6 | 6 | |
@@ -292,14 +292,14 @@ discard block |
||
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)); |
@@ -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\Sequencing; |
6 | 6 | |
@@ -20,7 +20,7 @@ discard block |
||
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 | } |
@@ -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\Sequencing; |
7 | 7 |
@@ -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\ORM\Sequencing; |
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\ORM\Sequencing; |
6 | 6 | |
@@ -77,7 +77,7 @@ discard block |
||
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 { |
@@ -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\ORM\Sequencing; |
6 | 6 |
@@ -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\Sequencing\Planning; |
7 | 7 | |
@@ -40,7 +40,7 @@ discard block |
||
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 |
@@ -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\Sequencing\Planning; |
7 | 7 |