Failed Conditions
Pull Request — develop (#6935)
by Michael
65:23
created
lib/Doctrine/ORM/Tools/Console/Helper/EntityManagerHelper.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\Helper;
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/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.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.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\ClearCache;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/EntityRegionCommand.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\ClearCache;
6 6
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
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(
Please login to merge, or discard this patch.