| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 24 | { |
||
| 25 | //$this->assetManager->register(ToolbarAsset::class); |
||
| 26 | $css = file_get_contents(dirname(__DIR__, 2) . '/resources/assets/css/toolbar.css'); |
||
| 27 | $js = file_get_contents(dirname(__DIR__, 2) . '/resources/assets/js/toolbar.js'); |
||
| 28 | $this->view->registerJs($js); |
||
| 29 | $this->view->registerJs( |
||
| 30 | <<<JS |
||
| 31 | window.YiiDebug.initToolbar('/debug/viewer/toolbar', '/debug/') |
||
| 32 | JS |
||
| 33 | ); |
||
| 34 | $this->view->registerCss($css, WebView::POSITION_END); |
||
| 35 | |||
| 36 | return $handler->handle($request); |
||
| 37 | } |
||
| 39 |
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