@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * Check if Datatables must uses regular expressions |
| 42 | 42 | * |
| 43 | 43 | * @param integer $index |
| 44 | - * @return string |
|
| 44 | + * @return boolean |
|
| 45 | 45 | */ |
| 46 | 46 | public function isRegex($index) |
| 47 | 47 | { |
@@ -20,9 +20,9 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function checkLegacyCode() |
| 22 | 22 | { |
| 23 | - if (! $this->input('draw') && $this->input('sEcho')) { |
|
| 23 | + if (!$this->input('draw') && $this->input('sEcho')) { |
|
| 24 | 24 | throw new Exception('DataTables legacy code is not supported! Please use DataTables 1.10++ coding convention.'); |
| 25 | - } elseif (! $this->input('draw') && ! $this->input('columns')) { |
|
| 25 | + } elseif (!$this->input('draw') && !$this->input('columns')) { |
|
| 26 | 26 | throw new Exception('Insufficient parameters'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function orderableColumns() |
| 57 | 57 | { |
| 58 | - if (! $this->isOrderable()) { |
|
| 58 | + if (!$this->isOrderable()) { |
|
| 59 | 59 | return []; |
| 60 | 60 | } |
| 61 | 61 | |
@@ -167,6 +167,6 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | public function isPaginationable() |
| 169 | 169 | { |
| 170 | - return ! is_null($this->input('start')) && ! is_null($this->input('length')) && $this->input('length') != -1; |
|
| 170 | + return !is_null($this->input('start')) && !is_null($this->input('length')) && $this->input('length') != -1; |
|
| 171 | 171 | } |
| 172 | 172 | } |