| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function setupExporter() |
||
| 48 | { |
||
| 49 | if ($scope = Input::get(Exporter::$queryName)) { |
||
| 50 | if (!$this->useExporter) { |
||
| 51 | // Failed, throw exception |
||
| 52 | throw new NotAcceptableHttpException(trans('backend.export_forbidden')); |
||
| 53 | } |
||
| 54 | |||
| 55 | (new Exporter($this->repository))->resolve($this->exporter)->withScope($scope)->export(); |
||
| 56 | } |
||
| 88 |