| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | public function __invoke(Request $request, $id) |
||
| 13 | { |
||
| 14 | $h5p = App::make('LaravelH5p'); |
||
| 15 | $core = $h5p::$core; |
||
| 16 | $interface = $h5p::$interface; |
||
| 17 | |||
| 18 | $content = $core->loadContent($id); |
||
| 19 | $content['filtered'] = ''; |
||
| 20 | $params = $core->filterParameters($content); |
||
| 21 | |||
| 22 | return response() |
||
| 23 | ->download($interface->_download_file, '', [ |
||
| 24 | 'Content-Type' => 'application/zip', |
||
| 25 | 'Cache-Control' => 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', |
||
| 26 | ]); |
||
| 27 | |||
| 28 | event(new H5pEvent('download', null, $content['id'], $content['title'], $content['library']['name'], $content['library']['majorVersion'], $content['library']['minorVersion'])); |
||
| 29 | } |
||
| 31 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths