@@ -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 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools\Console; |
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\Console\Helper; |
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\Console\Command; |
6 | 6 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | $hydrationModeName = $input->getOption('hydrate'); |
85 | - $hydrationMode = 'Doctrine\ORM\Query::HYDRATE_' . strtoupper(str_replace('-', '_', $hydrationModeName)); |
|
85 | + $hydrationMode = 'Doctrine\ORM\Query::HYDRATE_'.strtoupper(str_replace('-', '_', $hydrationModeName)); |
|
86 | 86 | |
87 | 87 | if ( ! defined($hydrationMode)) { |
88 | 88 | throw new \RuntimeException( |
@@ -45,14 +45,14 @@ |
||
45 | 45 | protected function configure() |
46 | 46 | { |
47 | 47 | $this->setName('orm:run-dql') |
48 | - ->setDescription('Executes arbitrary DQL directly from the command line') |
|
49 | - ->addArgument('dql', InputArgument::REQUIRED, 'The DQL to execute.') |
|
50 | - ->addOption('hydrate', null, InputOption::VALUE_REQUIRED, 'Hydration mode of result set. Should be either: object, array, scalar or single-scalar.', 'object') |
|
51 | - ->addOption('first-result', null, InputOption::VALUE_REQUIRED, 'The first result in the result set.') |
|
52 | - ->addOption('max-result', null, InputOption::VALUE_REQUIRED, 'The maximum number of results in the result set.') |
|
53 | - ->addOption('depth', null, InputOption::VALUE_REQUIRED, 'Dumping depth of Entity graph.', 7) |
|
54 | - ->addOption('show-sql', null, InputOption::VALUE_NONE, 'Dump generated SQL instead of executing query') |
|
55 | - ->setHelp('Executes arbitrary DQL directly from the command line.'); |
|
48 | + ->setDescription('Executes arbitrary DQL directly from the command line') |
|
49 | + ->addArgument('dql', InputArgument::REQUIRED, 'The DQL to execute.') |
|
50 | + ->addOption('hydrate', null, InputOption::VALUE_REQUIRED, 'Hydration mode of result set. Should be either: object, array, scalar or single-scalar.', 'object') |
|
51 | + ->addOption('first-result', null, InputOption::VALUE_REQUIRED, 'The first result in the result set.') |
|
52 | + ->addOption('max-result', null, InputOption::VALUE_REQUIRED, 'The maximum number of results in the result set.') |
|
53 | + ->addOption('depth', null, InputOption::VALUE_REQUIRED, 'Dumping depth of Entity graph.', 7) |
|
54 | + ->addOption('show-sql', null, InputOption::VALUE_NONE, 'Dump generated SQL instead of executing query') |
|
55 | + ->setHelp('Executes arbitrary DQL directly from the command line.'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -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\Console\Command\SchemaTool; |
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\Console\Command\ClearCache; |
6 | 6 |
@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | protected function configure() |
31 | 31 | { |
32 | 32 | $this->setName('orm:clear-cache:result') |
33 | - ->setDescription('Clear all result cache of the various cache drivers') |
|
34 | - ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.') |
|
35 | - ->setHelp(<<<'EOT' |
|
33 | + ->setDescription('Clear all result cache of the various cache drivers') |
|
34 | + ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.') |
|
35 | + ->setHelp(<<<'EOT' |
|
36 | 36 | The <info>%command.name%</info> command is meant to clear the result cache of associated Entity Manager. |
37 | 37 | It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider |
38 | 38 | instance completely. |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | Finally, be aware that if <info>--flush</info> option is passed, not all cache providers are able to flush entries, |
50 | 50 | because of a limitation of its execution nature. |
51 | 51 | EOT |
52 | - ); |
|
52 | + ); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -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\Console\Command\ClearCache; |
6 | 6 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | if ($input->getOption('flush')) { |
83 | - $entityRegion = $cache->getEntityCacheRegion($entityClass); |
|
83 | + $entityRegion = $cache->getEntityCacheRegion($entityClass); |
|
84 | 84 | |
85 | 85 | if ( ! $entityRegion instanceof DefaultRegion) { |
86 | 86 | throw new \InvalidArgumentException(sprintf( |
@@ -27,12 +27,12 @@ discard block |
||
27 | 27 | protected function configure() |
28 | 28 | { |
29 | 29 | $this->setName('orm:clear-cache:region:entity') |
30 | - ->setDescription('Clear a second-level cache entity region') |
|
31 | - ->addArgument('entity-class', InputArgument::OPTIONAL, 'The entity name.') |
|
32 | - ->addArgument('entity-id', InputArgument::OPTIONAL, 'The entity identifier.') |
|
33 | - ->addOption('all', null, InputOption::VALUE_NONE, 'If defined, all entity regions will be deleted/invalidated.') |
|
34 | - ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, all cache entries will be flushed.') |
|
35 | - ->setHelp(<<<'EOT' |
|
30 | + ->setDescription('Clear a second-level cache entity region') |
|
31 | + ->addArgument('entity-class', InputArgument::OPTIONAL, 'The entity name.') |
|
32 | + ->addArgument('entity-id', InputArgument::OPTIONAL, 'The entity identifier.') |
|
33 | + ->addOption('all', null, InputOption::VALUE_NONE, 'If defined, all entity regions will be deleted/invalidated.') |
|
34 | + ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, all cache entries will be flushed.') |
|
35 | + ->setHelp(<<<'EOT' |
|
36 | 36 | The <info>%command.name%</info> command is meant to clear a second-level cache entity region for an associated Entity Manager. |
37 | 37 | It is possible to delete/invalidate all entity region, a specific entity region or flushes the cache provider. |
38 | 38 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | Finally, be aware that if <info>--flush</info> option is passed, |
57 | 57 | not all cache providers are able to flush entries, because of a limitation of its execution nature. |
58 | 58 | EOT |
59 | - ); |
|
59 | + ); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |