Completed
Push — master ( 06f7d5...53787e )
by Michal
65:51
created
src/Statements/DeleteStatement.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -71,15 +71,15 @@  discard block
 block discarded – undo
71 71
      * @var array
72 72
      */
73 73
     public static $CLAUSES = array(
74
-        'DELETE'                        => array('DELETE',      2),
74
+        'DELETE'                        => array('DELETE', 2),
75 75
         // Used for options.
76
-        '_OPTIONS'                      => array('_OPTIONS',    1),
77
-        'FROM'                          => array('FROM',        3),
78
-        'PARTITION'                     => array('PARTITION',   3),
79
-        'USING'                         => array('USING',       3),
80
-        'WHERE'                         => array('WHERE',       3),
81
-        'ORDER BY'                      => array('ORDER BY',    3),
82
-        'LIMIT'                         => array('LIMIT',       3),
76
+        '_OPTIONS'                      => array('_OPTIONS', 1),
77
+        'FROM'                          => array('FROM', 3),
78
+        'PARTITION'                     => array('PARTITION', 3),
79
+        'USING'                         => array('USING', 3),
80
+        'WHERE'                         => array('WHERE', 3),
81
+        'ORDER BY'                      => array('ORDER BY', 3),
82
+        'LIMIT'                         => array('LIMIT', 3),
83 83
     );
84 84
 
85 85
     /**
@@ -137,25 +137,25 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function build()
139 139
     {
140
-        $ret = 'DELETE ' . OptionsArray::build($this->options);
140
+        $ret = 'DELETE '.OptionsArray::build($this->options);
141 141
 
142 142
         if ($this->columns != NULL && count($this->columns) > 0) {
143
-            $ret .= ' ' . ExpressionArray::build($this->columns);
143
+            $ret .= ' '.ExpressionArray::build($this->columns);
144 144
         }
145 145
         if ($this->from != NULL && count($this->from) > 0) {
146
-            $ret .= ' FROM ' . ExpressionArray::build($this->from);
146
+            $ret .= ' FROM '.ExpressionArray::build($this->from);
147 147
         }
148 148
         if ($this->using != NULL && count($this->using) > 0) {
149
-            $ret .= ' USING ' . ExpressionArray::build($this->using);
149
+            $ret .= ' USING '.ExpressionArray::build($this->using);
150 150
         }
151 151
         if ($this->where != NULL && count($this->where) > 0) {
152
-            $ret .= ' WHERE ' . Condition::build($this->where);
152
+            $ret .= ' WHERE '.Condition::build($this->where);
153 153
         }
154 154
         if ($this->order != NULL && count($this->order) > 0) {
155
-            $ret .= ' ORDER BY ' . ExpressionArray::build($this->order);
155
+            $ret .= ' ORDER BY '.ExpressionArray::build($this->order);
156 156
         }
157 157
         if ($this->limit != NULL && count($this->limit) > 0) {
158
-            $ret .= ' LIMIT ' . Limit::build($this->limit);
158
+            $ret .= ' LIMIT '.Limit::build($this->limit);
159 159
         }
160 160
 
161 161
         return $ret;
Please login to merge, or discard this patch.