Completed
Push — master ( c45663...914a98 )
by Andreas
05:24
created
src/storage/subscriber.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.