@@ -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 | } |
@@ -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 | } |