@@ -206,17 +206,17 @@ |
||
| 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 | } |