| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | public function export(AdminRequest $request, string $page, string $format) |
||
| 47 | { |
||
| 48 | $resource = $request->resource(); |
||
| 49 | |||
| 50 | $this->authorize('index', $resource->model()); |
||
| 51 | |||
| 52 | $query = $resource->finder()->getQuery(); |
||
| 53 | |||
| 54 | return $resource->actions()->exec('export', [$query, $format]); |
||
| 55 | } |
||
| 57 |