@@ -107,8 +107,8 @@ discard block |
||
| 107 | 107 | $cs = $em->getUnitOfWork()->getEntityChangeSet($entity); |
| 108 | 108 | // We only need to update repligard if we're coming from create (revision 0) |
| 109 | 109 | // or if we delete/undelete |
| 110 | - if ( !array_key_exists('metadata_deleted', $cs) |
|
| 111 | - && $entity->metadata_revision > 0) { |
|
| 110 | + if (!array_key_exists('metadata_deleted', $cs) |
|
| 111 | + && $entity->metadata_revision > 0) { |
|
| 112 | 112 | $check_repligard = false; |
| 113 | 113 | } |
| 114 | 114 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | foreach ($columns as $name => &$config) { |
| 179 | 179 | if ($platform instanceof SqlitePlatform) { |
| 180 | - if ( !empty($config['comment']) |
|
| 180 | + if (!empty($config['comment']) |
|
| 181 | 181 | && $config['comment'] == 'BINARY') { |
| 182 | 182 | $modified = true; |
| 183 | 183 | $config['columnDefinition'] = $config['type']->getSQLDeclaration($config, $platform) . ' COLLATE BINARY' . $platform->getDefaultValueDeclarationSQL($config); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | $config['columnDefinition'] = $config['comment'] . $platform->getDefaultValueDeclarationSQL($config); |
| 195 | 195 | } |
| 196 | 196 | if (!empty($config['columnDefinition']) && $platform->supportsInlineColumnComments()) { |
| 197 | - $config['columnDefinition'] .= " COMMENT " . $platform->quoteStringLiteral($config['comment']); |
|
| 197 | + $config['columnDefinition'] .= " COMMENT " . $platform->quoteStringLiteral($config['comment']); |
|
| 198 | 198 | } |
| 199 | 199 | } |
| 200 | 200 | } |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $args) |
| 279 | 279 | { |
| 280 | 280 | $table = $args->getClassTable(); |
| 281 | - if ( !$table->hasOption('engine') |
|
| 281 | + if (!$table->hasOption('engine') |
|
| 282 | 282 | || $table->getOption('engine') !== 'MyISAM') { |
| 283 | 283 | return; |
| 284 | 284 | } |