Completed
Pull Request — master (#88)
by Deven
65:05
created
src/Components/CreateDefinition.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Components/FunctionCall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,6 +120,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Components/UnionKeyword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Components/SetOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Components/RenameOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Components/ArrayObj.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Components/Key.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -188,21 +188,21 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Components/ParameterDefinition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,15 +146,15 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Components/Limit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.