@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | |
237 | 237 | private function _convert_to_localdata() : string |
238 | 238 | { |
239 | - return "var " . $this->_grid->get_identifier() . '_entries = ' . json_encode($this->get_rows()) . ";\n"; |
|
239 | + return "var " . $this->_grid->get_identifier() . '_entries = ' . json_encode($this->get_rows()) . ";\n"; |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | private function _render_json() |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | $this->_sort_field = $query['sidx']; |
270 | 270 | $this->_sort_direction = strtoupper($query['sord'] ?? 'ASC'); |
271 | 271 | } |
272 | - if ( !empty($query['_search']) |
|
272 | + if (!empty($query['_search']) |
|
273 | 273 | && $query['_search'] === 'true') { |
274 | 274 | foreach ($query as $field => $value) { |
275 | 275 | if (in_array($field, ['_search', 'nd', 'page', 'rows', 'sidx', 'sord'])) { |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | |
295 | 295 | $this->_total_rows = $query->count(); |
296 | 296 | |
297 | - if ( $this->_datatype == 'json' |
|
297 | + if ($this->_datatype == 'json' |
|
298 | 298 | && !empty($this->_results_per_page)) { |
299 | 299 | $query->set_limit($this->_results_per_page); |
300 | 300 | if (!empty($this->_offset)) { |