@@ -188,21 +188,21 @@ |
||
188 | 188 | */ |
189 | 189 | public static function build($component, array $options = array()) |
190 | 190 | { |
191 | - $ret = $component->type . ' '; |
|
191 | + $ret = $component->type.' '; |
|
192 | 192 | if (!empty($component->name)) { |
193 | - $ret .= Context::escape($component->name) . ' '; |
|
193 | + $ret .= Context::escape($component->name).' '; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | $columns = array(); |
197 | 197 | foreach ($component->columns as $column) { |
198 | 198 | $tmp = Context::escape($column['name']); |
199 | 199 | if (isset($column['length'])) { |
200 | - $tmp .= '(' . $column['length'] . ')'; |
|
200 | + $tmp .= '('.$column['length'].')'; |
|
201 | 201 | } |
202 | 202 | $columns[] = $tmp; |
203 | 203 | } |
204 | 204 | |
205 | - $ret .= '(' . implode(',', $columns) . ') ' . $component->options; |
|
205 | + $ret .= '('.implode(',', $columns).') '.$component->options; |
|
206 | 206 | return trim($ret); |
207 | 207 | } |
208 | 208 | } |
@@ -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 | } |
@@ -146,15 +146,15 @@ |
||
146 | 146 | public static function build($component, array $options = array()) |
147 | 147 | { |
148 | 148 | if (is_array($component)) { |
149 | - return '(' . implode(', ', $component) . ')'; |
|
149 | + return '('.implode(', ', $component).')'; |
|
150 | 150 | } else { |
151 | 151 | $tmp = ''; |
152 | 152 | if (!empty($component->inOut)) { |
153 | - $tmp .= $component->inOut . ' '; |
|
153 | + $tmp .= $component->inOut.' '; |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | return trim( |
157 | - $tmp . Context::escape($component->name) . ' ' . $component->type |
|
157 | + $tmp.Context::escape($component->name).' '.$component->type |
|
158 | 158 | ); |
159 | 159 | } |
160 | 160 | } |
@@ -130,7 +130,7 @@ |
||
130 | 130 | if (empty($component->offset)) { |
131 | 131 | return (string) $component->rowCount; |
132 | 132 | } else { |
133 | - return $component->offset . ', ' . $component->rowCount; |
|
133 | + return $component->offset.', '.$component->rowCount; |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 | } |
@@ -151,7 +151,7 @@ |
||
151 | 151 | { |
152 | 152 | return trim( |
153 | 153 | $component->table |
154 | - . ' (' . implode(', ', Context::escape($component->columns)) . ') ' |
|
154 | + . ' ('.implode(', ', Context::escape($component->columns)).') ' |
|
155 | 155 | . $component->options |
156 | 156 | ); |
157 | 157 | } |
@@ -139,7 +139,7 @@ |
||
139 | 139 | if (is_array($component)) { |
140 | 140 | return implode(', ', $component); |
141 | 141 | } else { |
142 | - return $component->expr . ' ' . $component->type; |
|
142 | + return $component->expr.' '.$component->type; |
|
143 | 143 | } |
144 | 144 | } |
145 | 145 | } |
@@ -180,10 +180,10 @@ |
||
180 | 180 | { |
181 | 181 | $ret = array(); |
182 | 182 | foreach ($component as $c) { |
183 | - $ret[] = array_search($c->type, static::$JOINS) . ' ' . $c->expr |
|
183 | + $ret[] = array_search($c->type, static::$JOINS).' '.$c->expr |
|
184 | 184 | . (!empty($c->on) |
185 | - ? ' ON ' . Condition::build($c->on) |
|
186 | - : ' USING ' . ArrayObj::build($c->using)); |
|
185 | + ? ' ON '.Condition::build($c->on) |
|
186 | + : ' USING '.ArrayObj::build($c->using)); |
|
187 | 187 | } |
188 | 188 | return implode(' ', $ret); |
189 | 189 | } |
@@ -163,9 +163,9 @@ |
||
163 | 163 | |
164 | 164 | $parameters = ''; |
165 | 165 | if (!empty($component->parameters)) { |
166 | - $parameters = '(' . implode(',', $component->parameters) . ')'; |
|
166 | + $parameters = '('.implode(',', $component->parameters).')'; |
|
167 | 167 | } |
168 | 168 | |
169 | - return trim($name . $parameters . ' ' . $component->options); |
|
169 | + return trim($name.$parameters.' '.$component->options); |
|
170 | 170 | } |
171 | 171 | } |
@@ -432,7 +432,7 @@ |
||
432 | 432 | } |
433 | 433 | |
434 | 434 | if (!empty($component->alias)) { |
435 | - $ret .= ' AS ' . Context::escape($component->alias); |
|
435 | + $ret .= ' AS '.Context::escape($component->alias); |
|
436 | 436 | } |
437 | 437 | |
438 | 438 | return $ret; |