@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | public function filter($fieldName, $operator, $value) |
| 160 | 160 | { |
| 161 | - switch ($operator) { |
|
| 161 | + switch ($operator) { |
|
| 162 | 162 | case "eq": |
| 163 | 163 | $operator = '='; |
| 164 | 164 | break; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | break; |
| 168 | 168 | case "gt": |
| 169 | 169 | $operator = '>'; |
| 170 | - break; |
|
| 170 | + break; |
|
| 171 | 171 | case "lt": |
| 172 | 172 | $operator = '<'; |
| 173 | 173 | break; |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | break; |
| 130 | 130 | case "gt": |
| 131 | 131 | $operator = '>'; |
| 132 | - break; |
|
| 132 | + break; |
|
| 133 | 133 | case "lt": |
| 134 | 134 | $operator = '<'; |
| 135 | 135 | break; |
@@ -38,11 +38,11 @@ |
||
| 38 | 38 | |
| 39 | 39 | protected function loadInput() |
| 40 | 40 | { |
| 41 | - if (version_compare(App::version(), '6.0', '>=')) { |
|
| 41 | + if (version_compare(App::version(), '6.0', '>=')) { |
|
| 42 | 42 | $this->input = \Illuminate\Support\Facades\Request::input($this->getKey(), []); |
| 43 | - } else { |
|
| 43 | + } else { |
|
| 44 | 44 | $this->input = \Illuminate\Support\Facades\Input::get($this->getKey(), []); |
| 45 | - } |
|
| 45 | + } |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -24,11 +24,11 @@ |
||
| 24 | 24 | protected function setupPaginationForReading() |
| 25 | 25 | { |
| 26 | 26 | Paginator::currentPageResolver(function () { |
| 27 | - if (version_compare(App::version(), '6.0', '>=')) { |
|
| 27 | + if (version_compare(App::version(), '6.0', '>=')) { |
|
| 28 | 28 | return \Illuminate\Support\Facades\Request::input("$this->input_key.page", 1); |
| 29 | - } else { |
|
| 29 | + } else { |
|
| 30 | 30 | return \Illuminate\Support\Facades\Input::get("$this->input_key.page", 1); |
| 31 | - } |
|
| 31 | + } |
|
| 32 | 32 | }); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -68,20 +68,20 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - /** |
|
| 72 | - * |
|
| 73 | - * @return array |
|
| 74 | - */ |
|
| 75 | - function headings(): array |
|
| 71 | + /** |
|
| 72 | + * |
|
| 73 | + * @return array |
|
| 74 | + */ |
|
| 75 | + function headings(): array |
|
| 76 | 76 | { |
| 77 | 77 | return $this->getHeaderRow(); |
| 78 | - } |
|
| 78 | + } |
|
| 79 | 79 | |
| 80 | - /** |
|
| 81 | - * |
|
| 82 | - * @return array |
|
| 83 | - */ |
|
| 84 | - function registerEvents(): array |
|
| 80 | + /** |
|
| 81 | + * |
|
| 82 | + * @return array |
|
| 83 | + */ |
|
| 84 | + function registerEvents(): array |
|
| 85 | 85 | { |
| 86 | 86 | return [ |
| 87 | 87 | BeforeSheet::class => function(BeforeSheet $event) { |
@@ -91,6 +91,6 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | ]; |
| 94 | - } |
|
| 94 | + } |
|
| 95 | 95 | |
| 96 | 96 | } |