Completed
Push — master ( 1c5f8a...c669ad )
by Midori
24:34 queued 09:27
created
src/QueryMaker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,14 +49,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.