@@ -62,7 +62,7 @@ |
||
| 62 | 62 | private function convertReferenceToValue($reference) |
| 63 | 63 | { |
| 64 | 64 | if (is_string($reference)) { |
| 65 | - return "\"" . $reference ."\""; |
|
| 65 | + return "\"" . $reference . "\""; |
|
| 66 | 66 | } elseif ($reference instanceof AbstractTable) { |
| 67 | 67 | return $reference->getAliasOrName(); |
| 68 | 68 | } elseif ($reference instanceof QueryComponentInterface) { |
@@ -98,8 +98,8 @@ |
||
| 98 | 98 | $builder = $payload->getBuilder(); |
| 99 | 99 | |
| 100 | 100 | if ($builder instanceof Component\InsertValuesComponentInterface) { |
| 101 | - $newSQL = 'VALUES ' . implode(', ', array_map(function (array $values) { |
|
| 102 | - return '('. implode(', ', $values) . ')'; |
|
| 101 | + $newSQL = 'VALUES ' . implode(', ', array_map(function(array $values) { |
|
| 102 | + return '(' . implode(', ', $values) . ')'; |
|
| 103 | 103 | }, $builder->getValues())); |
| 104 | 104 | $payload = $payload->appendSQL($newSQL); |
| 105 | 105 | } |
@@ -35,15 +35,15 @@ |
||
| 35 | 35 | |
| 36 | 36 | $container['phuria.sql_builder.parameter_manager.class'] = ParameterManager::class; |
| 37 | 37 | |
| 38 | - $container['phuria.sql_builder.table_registry'] = function () { |
|
| 38 | + $container['phuria.sql_builder.table_registry'] = function() { |
|
| 39 | 39 | return new TableRegistry(); |
| 40 | 40 | }; |
| 41 | 41 | |
| 42 | - $container['phuria.sql_builder.table_factory'] = function (Container $c) { |
|
| 42 | + $container['phuria.sql_builder.table_factory'] = function(Container $c) { |
|
| 43 | 43 | return new TableFactory($c['phuria.sql_builder.table_registry']); |
| 44 | 44 | }; |
| 45 | 45 | |
| 46 | - $container['phuria.sql_builder.query_compiler'] = function () { |
|
| 46 | + $container['phuria.sql_builder.query_compiler'] = function() { |
|
| 47 | 47 | $queryCompiler = new QueryCompiler(); |
| 48 | 48 | $queryCompiler->addConcreteCompiler(new SelectCompiler()); |
| 49 | 49 | $queryCompiler->addConcreteCompiler(new InsertCompiler()); |