Completed
Push — master ( 12c3f6...3ce342 )
by Andreas
05:20
created
src/storage/subscriber.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         if (!($entity instanceof repligard)) {
100 100
             $repligard_entry = $em->getRepository('midgard:midgard_repligard')->findOneBy(['guid' => $entity->guid]);
101 101
 
102
-            if (   $entity instanceof metadata
102
+            if ($entity instanceof metadata
103 103
                 && $entity->{metadata::DELETED_FIELD}) {
104 104
                 $repligard_entry->object_action = self::ACTION_DELETE;
105 105
             } else {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         foreach ($columns as $name => &$config) {
142 142
             if ($platform->getName() === 'sqlite') {
143
-                if (   !empty($config['primary'])
143
+                if (!empty($config['primary'])
144 144
                     && !empty($config['autoincrement'])) {
145 145
                     /*
146 146
                      * This is essentially a workaround for http://www.doctrine-project.org/jira/browse/DBAL-642
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                     $modified = true;
150 150
                     $config['columnDefinition'] = 'INTEGER PRIMARY KEY AUTOINCREMENT';
151 151
                 }
152
-                if (   !empty($config['comment'])
152
+                if (!empty($config['comment'])
153 153
                     && $config['comment'] == 'BINARY') {
154 154
                     $modified = true;
155 155
                     $config['columnDefinition'] = $config['type']->getSQLDeclaration($config, $platform) . ' COLLATE BINARY' . $platform->getDefaultValueDeclarationSQL($config);
@@ -167,10 +167,10 @@  discard block
 block discarded – undo
167 167
                     }
168 168
                 }
169 169
             }
170
-            if (   !empty($config['columnDefinition'])
170
+            if (!empty($config['columnDefinition'])
171 171
                 && !empty($config['comment'])
172 172
                 && $platform->supportsInlineColumnComments()) {
173
-                $config['columnDefinition'] .=  " COMMENT " . $platform->quoteStringLiteral($config['comment']);
173
+                $config['columnDefinition'] .= " COMMENT " . $platform->quoteStringLiteral($config['comment']);
174 174
             }
175 175
         }
176 176
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $args)
263 263
     {
264 264
         $table = $args->getClassTable();
265
-        if (   !$table->hasOption('engine')
265
+        if (!$table->hasOption('engine')
266 266
             || $table->getOption('engine') !== 'MyISAM') {
267 267
             return;
268 268
         }
Please login to merge, or discard this patch.