Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/EnsureProductionSettingsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.