@@ -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 | |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | foreach ($columns as $name => &$config) { |
| 159 | 159 | if ($platform->getName() === 'sqlite') { |
| 160 | - if ( !empty($config['primary']) |
|
| 160 | + if (!empty($config['primary']) |
|
| 161 | 161 | && !empty($config['autoincrement'])) { |
| 162 | 162 | /* |
| 163 | 163 | * This is essentially a workaround for http://www.doctrine-project.org/jira/browse/DBAL-642 |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | $modified = true; |
| 167 | 167 | $config['columnDefinition'] = 'INTEGER PRIMARY KEY AUTOINCREMENT'; |
| 168 | 168 | } |
| 169 | - if ( !empty($config['comment']) |
|
| 169 | + if (!empty($config['comment']) |
|
| 170 | 170 | && $config['comment'] == 'BINARY') { |
| 171 | 171 | $modified = true; |
| 172 | 172 | $config['columnDefinition'] = $config['type']->getSQLDeclaration($config, $platform) . ' COLLATE BINARY' . $platform->getDefaultValueDeclarationSQL($config); |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $config['columnDefinition'] = $config['comment'] . $platform->getDefaultValueDeclarationSQL($config); |
| 184 | 184 | } |
| 185 | 185 | if (!empty($config['columnDefinition']) && $platform->supportsInlineColumnComments()) { |
| 186 | - $config['columnDefinition'] .= " COMMENT " . $platform->quoteStringLiteral($config['comment']); |
|
| 186 | + $config['columnDefinition'] .= " COMMENT " . $platform->quoteStringLiteral($config['comment']); |
|
| 187 | 187 | } |
| 188 | 188 | } |
| 189 | 189 | } |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $args) |
| 277 | 277 | { |
| 278 | 278 | $table = $args->getClassTable(); |
| 279 | - if ( !$table->hasOption('engine') |
|
| 279 | + if (!$table->hasOption('engine') |
|
| 280 | 280 | || $table->getOption('engine') !== 'MyISAM') { |
| 281 | 281 | return; |
| 282 | 282 | } |