1 | <?php |
||
2 | |||
3 | namespace Frontend\Modules\Blog\Widgets; |
||
4 | |||
5 | use Frontend\Core\Engine\Base\Widget as FrontendBaseWidget; |
||
6 | use Frontend\Modules\Blog\Engine\Model as FrontendBlogModel; |
||
0 ignored issues
–
show
|
|||
7 | |||
8 | /** |
||
9 | * This is a widget with recent comments on all blog-articles |
||
10 | */ |
||
11 | class RecentComments extends FrontendBaseWidget |
||
12 | { |
||
13 | public function execute(): void |
||
14 | { |
||
15 | parent::execute(); |
||
16 | $this->loadTemplate(); |
||
17 | $this->parse(); |
||
18 | } |
||
19 | |||
20 | private function parse(): void |
||
21 | { |
||
22 | $this->template->assign('widgetBlogRecentComments', FrontendBlogModel::getRecentComments(5)); |
||
23 | } |
||
24 | } |
||
25 |
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