@@ -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\Query\Expr; |
6 | 6 | |
@@ -77,16 +77,16 @@ discard block |
||
77 | 77 | $leftExpr = (string) $this->leftExpr; |
78 | 78 | |
79 | 79 | if ($this->leftExpr instanceof Math) { |
80 | - $leftExpr = '(' . $leftExpr . ')'; |
|
80 | + $leftExpr = '('.$leftExpr.')'; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | // Adjusting Right Expression |
84 | 84 | $rightExpr = (string) $this->rightExpr; |
85 | 85 | |
86 | 86 | if ($this->rightExpr instanceof Math) { |
87 | - $rightExpr = '(' . $rightExpr . ')'; |
|
87 | + $rightExpr = '('.$rightExpr.')'; |
|
88 | 88 | } |
89 | 89 | |
90 | - return $leftExpr . ' ' . $this->operator . ' ' . $rightExpr; |
|
90 | + return $leftExpr.' '.$this->operator.' '.$rightExpr; |
|
91 | 91 | } |
92 | 92 | } |
@@ -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\Query\Expr; |
6 | 6 | |
@@ -43,12 +43,12 @@ discard block |
||
43 | 43 | $queryPart = (string) $part; |
44 | 44 | |
45 | 45 | if (is_object($part) && $part instanceof self && $part->count() > 1) { |
46 | - return $this->preSeparator . $queryPart . $this->postSeparator; |
|
46 | + return $this->preSeparator.$queryPart.$this->postSeparator; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND") |
50 | 50 | if (stripos($queryPart, ' OR ') !== false || stripos($queryPart, ' AND ') !== false) { |
51 | - return $this->preSeparator . $queryPart . $this->postSeparator; |
|
51 | + return $this->preSeparator.$queryPart.$this->postSeparator; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return $queryPart; |
@@ -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\Query\Exec; |
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\Query; |
6 | 6 | |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | |
156 | 156 | // Recognize identifiers, aliased or qualified names |
157 | 157 | case (ctype_alpha($value[0]) || $value[0] === '_' || $value[0] === '\\'): |
158 | - $name = 'Doctrine\ORM\Query\Lexer::T_' . strtoupper($value); |
|
158 | + $name = 'Doctrine\ORM\Query\Lexer::T_'.strtoupper($value); |
|
159 | 159 | |
160 | 160 | if (defined($name)) { |
161 | 161 | $type = constant($name); |
@@ -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\Query\AST; |
6 | 6 |
@@ -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\Query\AST\Functions; |
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\Query\AST\Functions; |
6 | 6 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $tableAlias = $sqlWalker->getSQLTableAlias($tableName, $dqlAlias); |
74 | 74 | $quotedColumnName = $platform->quoteIdentifier($joinColumn->getColumnName()); |
75 | 75 | |
76 | - return $tableAlias . '.' . $quotedColumnName; |
|
76 | + return $tableAlias.'.'.$quotedColumnName; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -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\Internal; |
6 | 6 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $metadata, |
75 | 75 | Events::postLoad, |
76 | 76 | $entity, |
77 | - $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity) { |
|
77 | + $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity) { |
|
78 | 78 | return $entity === $args->getEntity() && $entityManager === $args->getObjectManager(); |
79 | 79 | }), |
80 | 80 | $listenersFlag |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $this->logicalOr($metadata1, $metadata2), |
143 | 143 | Events::postLoad, |
144 | 144 | $this->logicalOr($entity1, $entity2), |
145 | - $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) { |
|
145 | + $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) { |
|
146 | 146 | return in_array($args->getEntity(), [$entity1, $entity2], true) |
147 | 147 | && $entityManager === $args->getObjectManager(); |
148 | 148 | }), |
@@ -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 | require_once 'Doctrine/Common/ClassLoader.php'; |
7 | 7 | |
@@ -11,13 +11,13 @@ discard block |
||
11 | 11 | $classLoader = new \Doctrine\Common\ClassLoader('Symfony'); |
12 | 12 | $classLoader->register(); |
13 | 13 | |
14 | -$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php'; |
|
14 | +$configFile = getcwd().DIRECTORY_SEPARATOR.'cli-config.php'; |
|
15 | 15 | |
16 | 16 | $helperSet = null; |
17 | 17 | if (file_exists($configFile)) { |
18 | 18 | if ( ! is_readable($configFile)) { |
19 | 19 | trigger_error( |
20 | - 'Configuration file [' . $configFile . '] does not have read permission.', E_USER_ERROR |
|
20 | + 'Configuration file ['.$configFile.'] does not have read permission.', E_USER_ERROR |
|
21 | 21 | ); |
22 | 22 | } |
23 | 23 |