Code Duplication    Length = 3-3 lines in 4 locations

src/Statements/LoadStatement.php 1 location

@@ 202-204 (lines=3) @@
199
            $ret .= ' IGNORE ' . $this->ignore_number . ' ' . $this->lines_rows;
200
        }
201
202
        if ($this->col_name_or_user_var !== null && count($this->col_name_or_user_var) > 0) {
203
            $ret .= ' ' . ExpressionArray::build($this->col_name_or_user_var);
204
        }
205
206
        if ($this->set !== null && count($this->set) > 0) {
207
            $ret .= ' SET ' . SetOperation::build($this->set);

src/Statements/DeleteStatement.php 3 locations

@@ 149-151 (lines=3) @@
146
        if ($this->columns != null && count($this->columns) > 0) {
147
            $ret .= ' ' . ExpressionArray::build($this->columns);
148
        }
149
        if ($this->from != null && count($this->from) > 0) {
150
            $ret .= ' FROM ' . ExpressionArray::build($this->from);
151
        }
152
        if ($this->join != null && count($this->join) > 0) {
153
            $ret .= ' ' . JoinKeyword::build($this->join);
154
        }
@@ 155-157 (lines=3) @@
152
        if ($this->join != null && count($this->join) > 0) {
153
            $ret .= ' ' . JoinKeyword::build($this->join);
154
        }
155
        if ($this->using != null && count($this->using) > 0) {
156
            $ret .= ' USING ' . ExpressionArray::build($this->using);
157
        }
158
        if ($this->where != null && count($this->where) > 0) {
159
            $ret .= ' WHERE ' . Condition::build($this->where);
160
        }
@@ 161-163 (lines=3) @@
158
        if ($this->where != null && count($this->where) > 0) {
159
            $ret .= ' WHERE ' . Condition::build($this->where);
160
        }
161
        if ($this->order != null && count($this->order) > 0) {
162
            $ret .= ' ORDER BY ' . ExpressionArray::build($this->order);
163
        }
164
        if ($this->limit != null && strlen($this->limit) > 0) {
165
            $ret .= ' LIMIT ' . Limit::build($this->limit);
166
        }