@@ -49,14 +49,14 @@ discard block |
||
49 | 49 | |
50 | 50 | public function count($table = null): 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 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | |
127 | 127 | public function orderBy($key, string $order = 'ASC'): QueryInterface |
128 | 128 | { |
129 | - if ($order !== 'DESC' && $order !== 'ASC') { |
|
129 | + if ($order !== 'DESC'&&$order !== 'ASC') { |
|
130 | 130 | throw new InvalidArgumentException('Invalid order value'); |
131 | 131 | } |
132 | 132 |