@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | public static function build($component, array $options = array()) |
289 | 289 | { |
290 | 290 | if (is_array($component)) { |
291 | - return "(\n " . implode(",\n ", $component) . "\n)"; |
|
291 | + return "(\n ".implode(",\n ", $component)."\n)"; |
|
292 | 292 | } else { |
293 | 293 | $tmp = ''; |
294 | 294 | |
@@ -297,22 +297,22 @@ discard block |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | if ((isset($component->name)) && ($component->name !== '')) { |
300 | - $tmp .= Context::escape($component->name) . ' '; |
|
300 | + $tmp .= Context::escape($component->name).' '; |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | if (!empty($component->type)) { |
304 | 304 | $tmp .= DataType::build( |
305 | 305 | $component->type, |
306 | 306 | array('lowercase' => true) |
307 | - ) . ' '; |
|
307 | + ).' '; |
|
308 | 308 | } |
309 | 309 | |
310 | 310 | if (!empty($component->key)) { |
311 | - $tmp .= $component->key . ' '; |
|
311 | + $tmp .= $component->key.' '; |
|
312 | 312 | } |
313 | 313 | |
314 | 314 | if (!empty($component->references)) { |
315 | - $tmp .= 'REFERENCES ' . $component->references . ' '; |
|
315 | + $tmp .= 'REFERENCES '.$component->references.' '; |
|
316 | 316 | } |
317 | 317 | |
318 | 318 | $tmp .= $component->options; |
@@ -120,6 +120,6 @@ |
||
120 | 120 | */ |
121 | 121 | public static function build($component, array $options = array()) |
122 | 122 | { |
123 | - return $component->name . $component->parameters; |
|
123 | + return $component->name.$component->parameters; |
|
124 | 124 | } |
125 | 125 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | { |
34 | 34 | $tmp = array(); |
35 | 35 | foreach ($component as $component) { |
36 | - $tmp[] = $component[0] . ' ' . $component[1]; |
|
36 | + $tmp[] = $component[0].' '.$component[1]; |
|
37 | 37 | } |
38 | 38 | return implode(' ', $tmp); |
39 | 39 | } |
@@ -132,7 +132,7 @@ |
||
132 | 132 | if (is_array($component)) { |
133 | 133 | return implode(', ', $component); |
134 | 134 | } else { |
135 | - return $component->column . ' = ' . $component->value; |
|
135 | + return $component->column.' = '.$component->value; |
|
136 | 136 | } |
137 | 137 | } |
138 | 138 | } |
@@ -168,7 +168,7 @@ |
||
168 | 168 | if (is_array($component)) { |
169 | 169 | return implode(', ', $component); |
170 | 170 | } else { |
171 | - return $component->old . ' TO ' . $component->new; |
|
171 | + return $component->old.' TO '.$component->new; |
|
172 | 172 | } |
173 | 173 | } |
174 | 174 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | || ($token->type === Token::TYPE_COMMENT) |
109 | 109 | ) { |
110 | 110 | $lastRaw .= $token->token; |
111 | - $lastValue = trim($lastValue) . ' '; |
|
111 | + $lastValue = trim($lastValue).' '; |
|
112 | 112 | continue; |
113 | 113 | } |
114 | 114 | |
@@ -186,9 +186,9 @@ discard block |
||
186 | 186 | if (is_array($component)) { |
187 | 187 | return implode(', ', $component); |
188 | 188 | } elseif (!empty($component->raw)) { |
189 | - return '(' . implode(', ', $component->raw) . ')'; |
|
189 | + return '('.implode(', ', $component->raw).')'; |
|
190 | 190 | } else { |
191 | - return '(' . implode(', ', $component->values) . ')'; |
|
191 | + return '('.implode(', ', $component->values).')'; |
|
192 | 192 | } |
193 | 193 | } |
194 | 194 | } |
@@ -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 | } |
@@ -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 | } |