@@ -47,8 +47,9 @@ discard block |
||
| 47 | 47 | Clause::LIMIT |
| 48 | 48 | ] as $clause |
| 49 | 49 | ) { |
| 50 | - if($this->clause($clause) === null) |
|
| 51 | - continue; |
|
| 50 | + if($this->clause($clause) === null) { |
|
| 51 | + continue; |
|
| 52 | + } |
|
| 52 | 53 | |
| 53 | 54 | $ret .= PHP_EOL . $this->clause($clause); |
| 54 | 55 | } |
@@ -79,8 +80,9 @@ discard block |
||
| 79 | 80 | */ |
| 80 | 81 | public function selectAlso(array $setter): self |
| 81 | 82 | { |
| 82 | - if (empty($setter)) |
|
| 83 | - throw new \InvalidArgumentException('EMPTY_SETTER_ARRAY'); |
|
| 83 | + if (empty($setter)) { |
|
| 84 | + throw new \InvalidArgumentException('EMPTY_SETTER_ARRAY'); |
|
| 85 | + } |
|
| 84 | 86 | |
| 85 | 87 | foreach ($setter as $alias => $column) { |
| 86 | 88 | |
@@ -160,8 +160,7 @@ |
||
| 160 | 160 | { |
| 161 | 161 | if(in_array('*', $columns)){ |
| 162 | 162 | $filtered_columns = ['*']; |
| 163 | - } |
|
| 164 | - else{ |
|
| 163 | + } else{ |
|
| 165 | 164 | $filtered_columns = array_intersect($columns, $this->columns($table)); |
| 166 | 165 | } |
| 167 | 166 | |