@@ -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\Cache; |
7 | 7 | |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | $this->ownerIdentifier = $ownerIdentifier; |
47 | 47 | $this->entityClass = (string) $entityClass; |
48 | 48 | $this->association = (string) $association; |
49 | - $this->hash = str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' . $association; |
|
49 | + $this->hash = str_replace('\\', '.', strtolower($entityClass)).'_'.implode(' ', $ownerIdentifier).'__'.$association; |
|
50 | 50 | } |
51 | 51 | } |
@@ -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\Repository; |
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\Tools; |
6 | 6 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Doctrine\ORM\Tools\Event; |
5 | 5 |
@@ -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\Tools; |
6 | 6 | |
@@ -28,14 +28,14 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public static function registerAutoloadDirectory($directory) |
30 | 30 | { |
31 | - if (!class_exists('Doctrine\Common\ClassLoader', false)) { |
|
32 | - require_once $directory . "/Doctrine/Common/ClassLoader.php"; |
|
31 | + if ( ! class_exists('Doctrine\Common\ClassLoader', false)) { |
|
32 | + require_once $directory."/Doctrine/Common/ClassLoader.php"; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | $loader = new ClassLoader("Doctrine", $directory); |
36 | 36 | $loader->register(); |
37 | 37 | |
38 | - $loader = new ClassLoader('Symfony\Component', $directory . "/Doctrine"); |
|
38 | + $loader = new ClassLoader('Symfony\Component', $directory."/Doctrine"); |
|
39 | 39 | $loader->register(); |
40 | 40 | } |
41 | 41 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | if ($cache instanceof CacheProvider) { |
114 | - $cache->setNamespace("dc2_" . md5($proxyDir) . "_"); // to avoid collisions |
|
114 | + $cache->setNamespace("dc2_".md5($proxyDir)."_"); // to avoid collisions |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | $config = new Configuration(); |
@@ -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\Tools\Pagination; |
7 | 7 | |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) |
31 | 31 | { |
32 | - return 'ROW_NUMBER() OVER(' . trim($sqlWalker->walkOrderByClause( |
|
32 | + return 'ROW_NUMBER() OVER('.trim($sqlWalker->walkOrderByClause( |
|
33 | 33 | $this->orderByClause |
34 | - )) . ')'; |
|
34 | + )).')'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -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\Tools\Pagination; |
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\Tools\Pagination; |
6 | 6 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | [$pathExpression] |
98 | 98 | ); |
99 | 99 | $expression = new InExpression($arithmeticExpression); |
100 | - $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS); |
|
100 | + $expression->literals[] = new InputParameter(":".self::PAGINATOR_ID_ALIAS); |
|
101 | 101 | |
102 | 102 | } else { |
103 | 103 | $expression = new NullComparisonExpression($pathExpression); |
@@ -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\Tools\Pagination; |
6 | 6 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | if ($property instanceof AssociationMetadata) { |
74 | 74 | throw new \RuntimeException( |
75 | - "Paginating an entity with foreign key as identifier only works when using the Output Walkers. " . |
|
75 | + "Paginating an entity with foreign key as identifier only works when using the Output Walkers. ". |
|
76 | 76 | "Call Paginator#setUseOutputWalkers(true) before iterating the paginator." |
77 | 77 | ); |
78 | 78 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $AST->selectClause->selectExpressions[] = new SelectExpression( |
101 | 101 | $this->createSelectExpressionItem($item->expression), |
102 | - '_dctrn_ord' . $this->aliasCounter++ |
|
102 | + '_dctrn_ord'.$this->aliasCounter++ |
|
103 | 103 | ); |
104 | 104 | } |
105 | 105 | } |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools\Pagination; |
6 | 6 | |
7 | -use Doctrine\DBAL\Types\Type; |
|
8 | 7 | use Doctrine\ORM\Mapping\AssociationMetadata; |
9 | 8 | use Doctrine\ORM\Mapping\ToManyAssociationMetadata; |
10 | 9 | use Doctrine\ORM\Query; |