Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.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\ClearCache;
6 6
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             throw new \LogicException("Cannot clear XCache Cache from Console, its shared in the Webserver memory and not accessible from the CLI.");
80 80
         }
81 81
 
82
-        $output->write('Clearing ALL Query cache entries' . PHP_EOL);
82
+        $output->write('Clearing ALL Query cache entries'.PHP_EOL);
83 83
 
84 84
         $result  = $cacheDriver->deleteAll();
85 85
         $message = ($result) ? 'Successfully deleted cache entries.' : 'No cache entries were deleted.';
@@ -89,6 +89,6 @@  discard block
 block discarded – undo
89 89
             $message = ($result) ? 'Successfully flushed cache entries.' : $message;
90 90
         }
91 91
 
92
-        $output->write($message . PHP_EOL);
92
+        $output->write($message.PHP_EOL);
93 93
     }
94 94
 }
Please login to merge, or discard this patch.
Doctrine/ORM/Tools/Console/Command/ClearCache/CollectionRegionCommand.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\ClearCache;
6 6
 
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
77 77
             throw new \InvalidArgumentException('No second-level cache is configured on the given EntityManager.');
78 78
         }
79 79
 
80
-        if ( (! $ownerClass || ! $assoc) && ! $input->getOption('all')) {
80
+        if (( ! $ownerClass || ! $assoc) && ! $input->getOption('all')) {
81 81
             throw new \InvalidArgumentException('Missing arguments "--owner-class" "--association"');
82 82
         }
83 83
 
84 84
         if ($input->getOption('flush')) {
85
-            $collectionRegion  = $cache->getCollectionCacheRegion($ownerClass, $assoc);
85
+            $collectionRegion = $cache->getCollectionCacheRegion($ownerClass, $assoc);
86 86
 
87 87
             if ( ! $collectionRegion instanceof DefaultRegion) {
88 88
                 throw new \InvalidArgumentException(sprintf(
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.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/ValidateSchemaCommand.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
             $output->writeln('<comment>[Mapping]  Skipped mapping check.</comment>');
64 64
         } elseif ($errors = $validator->validateMapping()) {
65 65
             foreach ($errors as $className => $errorMessages) {
66
-                $output->writeln("<error>[Mapping]  FAIL - The entity-class '" . $className . "' mapping is invalid:</error>");
66
+                $output->writeln("<error>[Mapping]  FAIL - The entity-class '".$className."' mapping is invalid:</error>");
67 67
 
68 68
                 foreach ($errorMessages as $errorMessage) {
69
-                    $output->writeln('* ' . $errorMessage);
69
+                    $output->writeln('* '.$errorMessage);
70 70
                 }
71 71
 
72 72
                 $output->writeln('');
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         if ($input->getOption('skip-sync')) {
81 81
             $output->writeln('<comment>[Database] SKIPPED - The database was not checked for synchronicity.</comment>');
82
-        } elseif (!$validator->schemaInSyncWithMetadata()) {
82
+        } elseif ( ! $validator->schemaInSyncWithMetadata()) {
83 83
             $output->writeln('<error>[Database] FAIL - The database schema is not in sync with the current mapping file.</error>');
84 84
             $exit += 2;
85 85
         } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.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
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
             if ($numRepositories) {
99 99
                 // Outputting information message
100
-                $output->writeln(PHP_EOL . sprintf('Repository classes generated to "<info>%s</INFO>"', $destPath));
100
+                $output->writeln(PHP_EOL.sprintf('Repository classes generated to "<info>%s</INFO>"', $destPath));
101 101
             } else {
102 102
                 $output->writeln('No Repository classes were found to be processed.');
103 103
             }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.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
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $exporter->setMetadata($metadata);
165 165
             $exporter->export();
166 166
 
167
-            $output->writeln(PHP_EOL . sprintf(
167
+            $output->writeln(PHP_EOL.sprintf(
168 168
                 'Exporting "<info>%s</info>" mapping information to "<info>%s</info>"', $toType, $destPath
169 169
             ));
170 170
         } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/ToolsException.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;
6 6
 
@@ -21,6 +21,6 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public static function schemaToolFailure($sql, \Exception $e)
23 23
     {
24
-        return new self("Schema-Tool failed with Error '" . $e->getMessage() . "' while executing DDL: " . $sql, 0, $e);
24
+        return new self("Schema-Tool failed with Error '".$e->getMessage()."' while executing DDL: ".$sql, 0, $e);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/DisconnectedClassMetadataFactory.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;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/UnexpectedResultException.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;
6 6
 
Please login to merge, or discard this patch.