Completed
Pull Request — master (#76)
by Deven
65:45
created
src/Statements/InsertStatement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -116,19 +116,19 @@
 block discarded – undo
116 116
      */
117 117
     public function build()
118 118
     {
119
-        $ret = 'INSERT ' . $this->options
120
-            . ' INTO ' . $this->into;
119
+        $ret = 'INSERT '.$this->options
120
+            . ' INTO '.$this->into;
121 121
 
122 122
         if ($this->values != NULL && count($this->values) > 0) {
123
-            $ret .= ' VALUES ' . ArrayObj::build($this->values);
123
+            $ret .= ' VALUES '.ArrayObj::build($this->values);
124 124
         } elseif ($this->set != NULL && count($this->set) > 0) {
125
-            $ret .= ' SET ' . SetOperation::build($this->set);
125
+            $ret .= ' SET '.SetOperation::build($this->set);
126 126
         } elseif ($this->select != NULL && count($this->select) > 0) {
127
-            $ret .= ' ' . $this->select->build();
127
+            $ret .= ' '.$this->select->build();
128 128
         }
129 129
 
130 130
         if ($this->onDuplicateSet != NULL && count($this->onDuplicateSet) > 0) {
131
-            $ret .= ' ON DUPLICATE KEY UPDATE ' . SetOperation::build($this->onDuplicateSet);
131
+            $ret .= ' ON DUPLICATE KEY UPDATE '.SetOperation::build($this->onDuplicateSet);
132 132
         }
133 133
 
134 134
         return $ret;
Please login to merge, or discard this patch.