@@ -146,7 +146,7 @@ |
||
146 | 146 | $entityGenerator->setRegenerateEntityIfExists($input->getOption('regenerate-entities')); |
147 | 147 | $entityGenerator->setUpdateEntityIfExists($input->getOption('update-entities')); |
148 | 148 | $entityGenerator->setNumSpaces($input->getOption('num-spaces')); |
149 | - $entityGenerator->setBackupExisting(!$input->getOption('no-backup')); |
|
149 | + $entityGenerator->setBackupExisting( ! $input->getOption('no-backup')); |
|
150 | 150 | |
151 | 151 | if (($extend = $input->getOption('extend')) !== null) { |
152 | 152 | $entityGenerator->setClassToExtend($extend); |
@@ -78,7 +78,6 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @param string $entityName Full or partial entity class name |
80 | 80 | * @param EntityManagerInterface $entityManager |
81 | - * @param OutputInterface $output |
|
82 | 81 | */ |
83 | 82 | private function displayEntity($entityName, EntityManagerInterface $entityManager, SymfonyStyle $ui) |
84 | 83 | { |
@@ -240,7 +239,7 @@ discard block |
||
240 | 239 | * @param string $label Label for the value |
241 | 240 | * @param mixed $value A Value to show |
242 | 241 | * |
243 | - * @return array |
|
242 | + * @return string[] |
|
244 | 243 | */ |
245 | 244 | private function formatField($label, $value) |
246 | 245 | { |
@@ -278,7 +277,7 @@ discard block |
||
278 | 277 | * |
279 | 278 | * @param array $entityListeners |
280 | 279 | * |
281 | - * @return array |
|
280 | + * @return string[] |
|
282 | 281 | */ |
283 | 282 | private function formatEntityListeners(array $entityListeners) |
284 | 283 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $message = ($result) ? 'Successfully flushed cache entries.' : $message; |
108 | 108 | } |
109 | 109 | |
110 | - if (!$result) { |
|
110 | + if ( ! $result) { |
|
111 | 111 | $ui->error($message); |
112 | 112 | |
113 | 113 | return 1; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | $ui->section('Database'); |
99 | 99 | if ($input->getOption('skip-sync')) { |
100 | 100 | $ui->text('<comment>[SKIPPED] The database was not checked for synchronicity.</comment>'); |
101 | - } elseif (!$validator->schemaInSyncWithMetadata()) { |
|
101 | + } elseif ( ! $validator->schemaInSyncWithMetadata()) { |
|
102 | 102 | $ui->error('The database schema is not in sync with the current mapping file.'); |
103 | 103 | $exit += 2; |
104 | 104 | } else { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | ->getMetadataDriverImpl() |
65 | 65 | ->getAllClassNames(); |
66 | 66 | |
67 | - if (!$entityClassNames) { |
|
67 | + if ( ! $entityClassNames) { |
|
68 | 68 | $ui->caution([ |
69 | 69 | 'You do not have any mapped Doctrine ORM entities according to the current configuration.', |
70 | 70 | 'If you have entities or mapping files you should check your mapping configuration for errors.' |
@@ -101,7 +101,7 @@ |
||
101 | 101 | ); |
102 | 102 | } |
103 | 103 | |
104 | - if ( count($metadatas)) { |
|
104 | + if (count($metadatas)) { |
|
105 | 105 | foreach ($metadatas as $metadata) { |
106 | 106 | $ui->text( |
107 | 107 | sprintf('Processing entity "<info>%s</info>"', $metadata->name) |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $message = ($result) ? 'Successfully flushed cache entries.' : $message; |
108 | 108 | } |
109 | 109 | |
110 | - if (!$result) { |
|
110 | + if ( ! $result) { |
|
111 | 111 | $ui->error($message); |
112 | 112 | |
113 | 113 | return 1; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $message = ($result) ? 'Successfully flushed cache entries.' : $message; |
108 | 108 | } |
109 | 109 | |
110 | - if (!$result) { |
|
110 | + if ( ! $result) { |
|
111 | 111 | $ui->error($message); |
112 | 112 | |
113 | 113 | return 1; |