@@ -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 |
@@ -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( |
@@ -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 | |
@@ -79,7 +79,7 @@ discard block |
||
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 |
||
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 | } |
@@ -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 | |
@@ -77,12 +77,12 @@ discard block |
||
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( |
@@ -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 |
@@ -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 | |
@@ -63,10 +63,10 @@ discard block |
||
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 |
||
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 { |
@@ -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 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | ->getMetadataDriverImpl() |
47 | 47 | ->getAllClassNames(); |
48 | 48 | |
49 | - if (!$entityClassNames) { |
|
49 | + if ( ! $entityClassNames) { |
|
50 | 50 | throw new \Exception( |
51 | 51 | 'You do not have any mapped Doctrine ORM entities according to the current configuration. '. |
52 | 52 | 'If you have entities or mapping files you should check your mapping configuration for errors.' |
@@ -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 | |
@@ -97,7 +97,7 @@ discard block |
||
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 | } |
@@ -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 | |
@@ -164,7 +164,7 @@ discard block |
||
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 { |