@@ -95,8 +95,8 @@ discard block |
||
| 95 | 95 | $cs = $em->getUnitOfWork()->getEntityChangeSet($entity); |
| 96 | 96 | // We only need to update repligard if we're coming from create (revision 0) |
| 97 | 97 | // or if we delete/undelete |
| 98 | - if ( !array_key_exists('metadata_deleted', $cs) |
|
| 99 | - && $entity->metadata_revision > 0) { |
|
| 98 | + if (!array_key_exists('metadata_deleted', $cs) |
|
| 99 | + && $entity->metadata_revision > 0) { |
|
| 100 | 100 | $check_repligard = false; |
| 101 | 101 | } |
| 102 | 102 | |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | foreach ($columns as $name => &$config) { |
| 167 | 167 | if ($platform->getName() === 'sqlite') { |
| 168 | - if ( !empty($config['comment']) |
|
| 168 | + if (!empty($config['comment']) |
|
| 169 | 169 | && $config['comment'] == 'BINARY') { |
| 170 | 170 | $modified = true; |
| 171 | 171 | $config['columnDefinition'] = $config['type']->getSQLDeclaration($config, $platform) . ' COLLATE BINARY' . $platform->getDefaultValueDeclarationSQL($config); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | $config['columnDefinition'] = $config['comment'] . $platform->getDefaultValueDeclarationSQL($config); |
| 183 | 183 | } |
| 184 | 184 | if (!empty($config['columnDefinition']) && $platform->supportsInlineColumnComments()) { |
| 185 | - $config['columnDefinition'] .= " COMMENT " . $platform->quoteStringLiteral($config['comment']); |
|
| 185 | + $config['columnDefinition'] .= " COMMENT " . $platform->quoteStringLiteral($config['comment']); |
|
| 186 | 186 | } |
| 187 | 187 | } |
| 188 | 188 | } |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $args) |
| 267 | 267 | { |
| 268 | 268 | $table = $args->getClassTable(); |
| 269 | - if ( !$table->hasOption('engine') |
|
| 269 | + if (!$table->hasOption('engine') |
|
| 270 | 270 | || $table->getOption('engine') !== 'MyISAM') { |
| 271 | 271 | return; |
| 272 | 272 | } |