1 | <?php |
||
2 | |||
3 | namespace Frontend\Modules\Blog\Widgets; |
||
4 | |||
5 | use Frontend\Core\Engine\Base\Widget as FrontendBaseWidget; |
||
6 | use Frontend\Core\Engine\Navigation as FrontendNavigation; |
||
7 | use Frontend\Modules\Blog\Engine\Model as FrontendBlogModel; |
||
0 ignored issues
–
show
|
|||
8 | |||
9 | /** |
||
10 | * This is a widget with recent blog-articles |
||
11 | */ |
||
12 | class RecentArticlesList extends FrontendBaseWidget |
||
13 | { |
||
14 | public function execute(): void |
||
15 | { |
||
16 | parent::execute(); |
||
17 | $this->loadTemplate(); |
||
18 | $this->parse(); |
||
19 | } |
||
20 | |||
21 | private function parse(): void |
||
22 | { |
||
23 | // get RSS-link |
||
24 | $rssTitle = $this->get('fork.settings')->get('Blog', 'rss_title_' . LANGUAGE, SITE_DEFAULT_TITLE); |
||
25 | $rssLink = FrontendNavigation::getUrlForBlock('Blog', 'Rss'); |
||
26 | |||
27 | // add RSS-feed into the metaCustom |
||
28 | $this->header->addRssLink($rssTitle, $rssLink); |
||
29 | |||
30 | // assign comments |
||
31 | $this->template->assign( |
||
32 | 'widgetBlogRecentArticlesList', |
||
33 | FrontendBlogModel::getAll($this->get('fork.settings')->get('Blog', 'recent_articles_list_num_items', 5)) |
||
34 | ); |
||
35 | $this->template->assign('widgetBlogRecentArticlesFullRssLink', $rssLink); |
||
36 | } |
||
37 | } |
||
38 |
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