Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
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 | $settings = $h5p::get_editor(); |
||
17 | $content = $h5p->get_content($id); |
||
18 | $embed = $h5p->get_embed($content, $settings); |
||
19 | $embed_code = $embed['embed']; |
||
20 | $settings = $embed['settings']; |
||
21 | |||
22 | event(new H5pEvent('content', null, $content['id'], $content['title'], $content['library']['name'], $content['library']['majorVersion'], $content['library']['minorVersion'])); |
||
23 | |||
24 | return view('h5p.content.embed', compact('settings', 'user', 'embed_code')); |
||
25 | } |
||
27 |
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