@@ -108,8 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | if ($no_bind === true) { |
110 | 110 | $this->conditions_table[] = $champ.$cond.$champ_test." ".$closure; |
111 | - } |
|
112 | - else { |
|
111 | + } else { |
|
113 | 112 | $this->conditions[] = $cond; |
114 | 113 | $this->addWhere($champ, $champ_test); |
115 | 114 | } |
@@ -121,7 +120,9 @@ discard block |
||
121 | 120 | * @param string $order |
122 | 121 | */ |
123 | 122 | public function orderBy($order, $type = null) { |
124 | - if ($type === null) $type = "ASC"; |
|
123 | + if ($type === null) { |
|
124 | + $type = "ASC"; |
|
125 | + } |
|
125 | 126 | |
126 | 127 | $this->order_by = " ORDER BY ".$order." ".$type." "; |
127 | 128 |