@@ -78,21 +78,21 @@ |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | private function buildLimitQuery($limit, $offset, $query = array()){ |
| 81 | - $limitQuery = []; |
|
| 82 | - if (!empty($limit)) { |
|
| 83 | - $query[] = 'LIMIT'; |
|
| 81 | + $limitQuery = []; |
|
| 82 | + if (!empty($limit)) { |
|
| 83 | + $query[] = 'LIMIT'; |
|
| 84 | 84 | |
| 85 | - if (!empty($offset)) { |
|
| 86 | - $query[] = $offset.','; |
|
| 87 | - } |
|
| 85 | + if (!empty($offset)) { |
|
| 86 | + $query[] = $offset.','; |
|
| 87 | + } |
|
| 88 | 88 | |
| 89 | - $query[] = $limit; |
|
| 90 | - } |
|
| 89 | + $query[] = $limit; |
|
| 90 | + } |
|
| 91 | 91 | |
| 92 | - if (count($limitQuery)) { |
|
| 93 | - $query = array_merge($query, $limitQuery); |
|
| 94 | - } |
|
| 95 | - return $query; |
|
| 92 | + if (count($limitQuery)) { |
|
| 93 | + $query = array_merge($query, $limitQuery); |
|
| 94 | + } |
|
| 95 | + return $query; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | public function buildQuery(array $params) |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | return "'".$field."'"; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - private function getQueryFields($fields, $tbl){ |
|
| 71 | + private function getQueryFields($fields, $tbl) { |
|
| 72 | 72 | $startQuery = join(', ', $fields); |
| 73 | 73 | if (empty($fields)) { |
| 74 | 74 | $startQuery = $this->quote($tbl).'.*'; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | return $startQuery; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - private function buildLimitQuery($limit, $offset, $query = array()){ |
|
| 80 | + private function buildLimitQuery($limit, $offset, $query = array()) { |
|
| 81 | 81 | $limitQuery = []; |
| 82 | 82 | if (!empty($limit)) { |
| 83 | 83 | $query[] = 'LIMIT'; |