Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 3 | public function handleSearch(Request $request) |
|
19 | { |
||
20 | 3 | $this->beforeInit(); |
|
21 | 3 | $this->init(); |
|
22 | 3 | $this->bound(); |
|
23 | |||
24 | 3 | if (!$this->can('search')) { |
|
25 | 2 | throw UnauthorizedException::forPermissions(['search']); |
|
26 | } |
||
27 | |||
28 | 1 | $this->crud()->saveSearchFilterParams($request->get('search', [])); |
|
29 | |||
30 | 1 | return redirect($this->crud()->listUrl()); |
|
31 | } |
||
39 |