Completed
Pull Request — master (#87)
by Deven
63:47
created
src/Statements/DeleteStatement.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -119,25 +119,25 @@
 block discarded – undo
119 119
      */
120 120
     public function build()
121 121
     {
122
-        $ret = 'DELETE ' . OptionsArray::build($this->options);
122
+        $ret = 'DELETE '.OptionsArray::build($this->options);
123 123
 
124 124
         if ($this->columns != NULL && count($this->columns) > 0) {
125
-            $ret .= ' ' . ExpressionArray::build($this->columns);
125
+            $ret .= ' '.ExpressionArray::build($this->columns);
126 126
         }
127 127
         if ($this->from != NULL && count($this->from) > 0) {
128
-            $ret .= ' FROM ' . ExpressionArray::build($this->from);
128
+            $ret .= ' FROM '.ExpressionArray::build($this->from);
129 129
         }
130 130
         if ($this->using != NULL && count($this->using) > 0) {
131
-            $ret .= ' USING ' . ExpressionArray::build($this->using);
131
+            $ret .= ' USING '.ExpressionArray::build($this->using);
132 132
         }
133 133
         if ($this->where != NULL && count($this->where) > 0) {
134
-            $ret .= ' WHERE ' . Condition::build($this->where);
134
+            $ret .= ' WHERE '.Condition::build($this->where);
135 135
         }
136 136
         if ($this->order != NULL && count($this->order) > 0) {
137
-            $ret .= ' ORDER BY ' . ExpressionArray::build($this->order);
137
+            $ret .= ' ORDER BY '.ExpressionArray::build($this->order);
138 138
         }
139 139
         if ($this->limit != NULL && count($this->limit) > 0) {
140
-            $ret .= ' LIMIT ' . Limit::build($this->limit);
140
+            $ret .= ' LIMIT '.Limit::build($this->limit);
141 141
         }
142 142
 
143 143
         return $ret;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -302,7 +302,7 @@
 block discarded – undo
302 302
                     ++$list->idx; // Skip 'ORDER  BY'
303 303
                     $this->order = OrderKeyword::parse($parser, $list);
304 304
                     $state = 5;
305
-                }  elseif ($token->type === Token::TYPE_KEYWORD
305
+                } elseif ($token->type === Token::TYPE_KEYWORD
306 306
                     && $token->value === 'LIMIT'
307 307
                 ) {
308 308
                     ++$list->idx; // Skip 'LIMIT'
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
@@ -127,6 +127,6 @@
 block discarded – undo
127 127
      */
128 128
     public static function build($component, array $options = array())
129 129
     {
130
-        return $component->offset . ', ' . $component->rowCount;
130
+        return $component->offset.', '.$component->rowCount;
131 131
     }
132 132
 }
Please login to merge, or discard this patch.