@@ -49,14 +49,14 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | public function count($table = null, bool $resetLimit = false): QueryInterface |
| 51 | 51 | { |
| 52 | - if ($table && $this->query === '') { |
|
| 52 | + if ($table&&$this->query === '') { |
|
| 53 | 53 | $this->reset(); |
| 54 | 54 | $this->statement = 'SELECT COUNT(*) FROM ' . $table; |
| 55 | 55 | $this->query = 'SELECT COUNT(*) FROM ' . $table; |
| 56 | 56 | return $this; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - if (!$table && $this->query === '') { |
|
| 59 | + if (!$table&&$this->query === '') { |
|
| 60 | 60 | throw new InvalidArgumentException('Cannot count'); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | public function orderBy($key, string $order = 'ASC'): QueryInterface |
| 132 | 132 | { |
| 133 | - if ($order !== 'DESC' && $order !== 'ASC') { |
|
| 133 | + if ($order !== 'DESC'&&$order !== 'ASC') { |
|
| 134 | 134 | throw new InvalidArgumentException('Invalid order value'); |
| 135 | 135 | } |
| 136 | 136 | |