Skip to content

Commit 36aad90

Browse files
committed
styleci Fix
1 parent 96df1bf commit 36aad90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/QueryDataTable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ public function limit(callable $callback)
618618
public function paging()
619619
{
620620
$max_records_per_page = $this->config->get('datatables.max_records_per_page', 0);
621-
$limit = (int) $this->request->input('length') > 0 ? $this->request->input('length') : 10;
622-
$limit = ($max_records_per_page > 0 && $limit > $max_records_per_page) ? $max_records_per_page : $limit;
621+
$limit = (int) $this->request->input('length') > 0 ? $this->request->input('length') : 10;
622+
$limit = ($max_records_per_page > 0 && $limit > $max_records_per_page) ? $max_records_per_page : $limit;
623623
if (is_callable($this->limitCallback)) {
624624
$this->query->limit($limit);
625625
call_user_func_array($this->limitCallback, [$this->query]);

src/config/datatables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
/**
123123
* Maximum records per page
124124
* Set 0 for unlimited record
125-
* Do not use value under 10 if you are not using laravel-datatables-html
125+
* Do not use value under 10 if you are not using laravel-datatables-html.
126126
*/
127127
'max_records_per_page' => 0,
128128

0 commit comments

Comments
 (0)