Completed
Pull Request — master (#69)
by Deven
65:09
created
src/Components/PartitionDefinition.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -206,17 +206,17 @@
 block discarded – undo
206 206
     public static function build($component, array $options = array())
207 207
     {
208 208
         if (is_array($component)) {
209
-            return "(\n" . implode(",\n", $component) . "\n)";
209
+            return "(\n".implode(",\n", $component)."\n)";
210 210
         } else {
211 211
             if ($component->isSubpartition) {
212
-                return trim('SUBPARTITION ' . $component->name . ' ' . $component->options);
212
+                return trim('SUBPARTITION '.$component->name.' '.$component->options);
213 213
             } else {
214 214
                 $subpartitions = empty($component->subpartitions)
215
-                    ? '' : ' ' . PartitionDefinition::build($component->subpartitions);
215
+                    ? '' : ' '.PartitionDefinition::build($component->subpartitions);
216 216
                 return trim(
217
-                    'PARTITION ' . $component->name
218
-                    . (empty($component->type) ? '' : ' VALUES ' . $component->type . ' ' . $component->expr . ' ')
219
-                    . $component->options . $subpartitions
217
+                    'PARTITION '.$component->name
218
+                    . (empty($component->type) ? '' : ' VALUES '.$component->type.' '.$component->expr.' ')
219
+                    . $component->options.$subpartitions
220 220
                 );
221 221
             }
222 222
         }
Please login to merge, or discard this patch.