Completed
Push — master ( 719094...023adc )
by Midori
10:14
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): 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
 block discarded – undo
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
 
Please login to merge, or discard this patch.