@@ -35,8 +35,8 @@ |
||
35 | 35 | $sql = 'SELECT '; |
36 | 36 | $sql .= $this->limit ? 'FIRST ? SKIP ?' : ''; |
37 | 37 | $sql .= $this->distinct ? 'DISTINCT ' : ''; |
38 | - $sql .= implode($glue , $this->cols).PHP_EOL; |
|
39 | - $sql .= !empty($this->from) ? 'FROM '.implode($glue , $this->from) : ''; |
|
38 | + $sql .= implode($glue, $this->cols).PHP_EOL; |
|
39 | + $sql .= !empty($this->from) ? 'FROM '.implode($glue, $this->from) : ''; |
|
40 | 40 | $sql .= $this->_getWhere(); |
41 | 41 | $sql .= !empty($this->groupby) ? PHP_EOL.'GROUP BY '.implode($glue, $this->groupby) : ''; |
42 | 42 | $sql .= !empty($this->orderby) ? PHP_EOL.'ORDER BY '.implode($glue, $this->orderby) : ''; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
65 | 65 | |
66 | 66 | $field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes) |
67 | - ? $type.'('. $length . ')' |
|
67 | + ? $type.'('.$length.')' |
|
68 | 68 | : $type; |
69 | 69 | |
70 | 70 | if($attribute){ |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $where = []; |
55 | 55 | |
56 | 56 | foreach($this->where as $k => $v){ |
57 | - $last = $this->where[$k-1] ?? false; |
|
57 | + $last = $this->where[$k - 1] ?? false; |
|
58 | 58 | |
59 | 59 | if(in_array($v, ['AND', 'OR', 'XOR', '(', ')'], true)){ |
60 | 60 | $where[] = $v; |