@@ -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 @@ 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( |
@@ -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 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $em->getConnection()->connect(); |
59 | 59 | } |
60 | 60 | } catch (\Exception $e) { |
61 | - $output->writeln('<error>' . $e->getMessage() . '</error>'); |
|
61 | + $output->writeln('<error>'.$e->getMessage().'</error>'); |
|
62 | 62 | |
63 | 63 | return 1; |
64 | 64 | } |
@@ -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 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $entityGenerator->setRegenerateEntityIfExists($input->getOption('regenerate-entities')); |
132 | 132 | $entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities')); |
133 | 133 | $entityGenerator->setNumSpaces($input->getOption('num-spaces')); |
134 | - $entityGenerator->setBackupExisting(!$input->getOption('no-backup')); |
|
134 | + $entityGenerator->setBackupExisting( ! $input->getOption('no-backup')); |
|
135 | 135 | |
136 | 136 | if (($extend = $input->getOption('extend')) !== null) { |
137 | 137 | $entityGenerator->setClassToExtend($extend); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $entityGenerator->generate($metadatas, $destPath); |
148 | 148 | |
149 | 149 | // Outputting information message |
150 | - $output->writeln(PHP_EOL . sprintf('Entity classes generated to "<info>%s</INFO>"', $destPath)); |
|
150 | + $output->writeln(PHP_EOL.sprintf('Entity classes generated to "<info>%s</INFO>"', $destPath)); |
|
151 | 151 | } else { |
152 | 152 | $output->writeln('No Metadata Classes to process.'); |
153 | 153 | } |
@@ -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 @@ 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\SchemaTool; |
6 | 6 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $force = true === $input->getOption('force'); |
110 | 110 | |
111 | 111 | if ($dumpSql) { |
112 | - $output->writeln(implode(';' . PHP_EOL, $sqls) . ';'); |
|
112 | + $output->writeln(implode(';'.PHP_EOL, $sqls).';'); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | if ($force) { |
@@ -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\SchemaTool; |
6 | 6 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } else { |
74 | 74 | $sqls = $schemaTool->getDropSchemaSQL($metadatas); |
75 | 75 | } |
76 | - $output->writeln(implode(';' . PHP_EOL, $sqls)); |
|
76 | + $output->writeln(implode(';'.PHP_EOL, $sqls)); |
|
77 | 77 | |
78 | 78 | return 0; |
79 | 79 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | return 0; |
93 | 93 | } |
94 | 94 | |
95 | - $output->writeln('<comment>ATTENTION</comment>: This operation should not be executed in a production environment.' . PHP_EOL); |
|
95 | + $output->writeln('<comment>ATTENTION</comment>: This operation should not be executed in a production environment.'.PHP_EOL); |
|
96 | 96 | |
97 | 97 | if ($isFullDatabaseDrop) { |
98 | 98 | $sqls = $schemaTool->getDropDatabaseSQL(); |
@@ -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\SchemaTool; |
6 | 6 | |
@@ -58,9 +58,9 @@ discard block |
||
58 | 58 | { |
59 | 59 | if ($input->getOption('dump-sql')) { |
60 | 60 | $sqls = $schemaTool->getCreateSchemaSql($metadatas); |
61 | - $output->writeln(implode(';' . PHP_EOL, $sqls) . ';'); |
|
61 | + $output->writeln(implode(';'.PHP_EOL, $sqls).';'); |
|
62 | 62 | } else { |
63 | - $output->writeln('ATTENTION: This operation should not be executed in a production environment.' . PHP_EOL); |
|
63 | + $output->writeln('ATTENTION: This operation should not be executed in a production environment.'.PHP_EOL); |
|
64 | 64 | |
65 | 65 | $output->writeln('Creating database schema...'); |
66 | 66 | $schemaTool->createSchema($metadatas); |
@@ -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 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ); |
84 | 84 | } |
85 | 85 | |
86 | - if ( count($metadatas)) { |
|
86 | + if (count($metadatas)) { |
|
87 | 87 | foreach ($metadatas as $metadata) { |
88 | 88 | $output->writeln( |
89 | 89 | sprintf('Processing entity "<info>%s</info>"', $metadata->getClassName()) |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $em->getProxyFactory()->generateProxyClasses($metadatas, $destPath); |
95 | 95 | |
96 | 96 | // Outputting information message |
97 | - $output->writeln(PHP_EOL . sprintf('Proxy classes generated to "<info>%s</INFO>"', $destPath)); |
|
97 | + $output->writeln(PHP_EOL.sprintf('Proxy classes generated to "<info>%s</INFO>"', $destPath)); |
|
98 | 98 | } else { |
99 | 99 | $output->writeln('No Metadata Classes to process.'); |
100 | 100 | } |