1 | <?php |
||
2 | /** |
||
3 | * MagePrince |
||
4 | * |
||
5 | * NOTICE OF LICENSE |
||
6 | * |
||
7 | * This source file is subject to the mageprince.com license that is |
||
8 | * available through the world-wide-web at this URL: |
||
9 | * https://mageprince.com/end-user-license-agreement |
||
10 | * |
||
11 | * DISCLAIMER |
||
12 | * |
||
13 | * Do not edit or add to this file if you wish to upgrade this extension to newer |
||
14 | * version in the future. |
||
15 | * |
||
16 | * @category MagePrince |
||
17 | * @package Mageprince_Faq |
||
18 | * @copyright Copyright (c) MagePrince (https://mageprince.com/) |
||
19 | * @license https://mageprince.com/end-user-license-agreement |
||
20 | */ |
||
21 | |||
22 | namespace Mageprince\Faq\Block; |
||
23 | |||
24 | use Magento\Framework\View\Element\Html\Link; |
||
25 | use Magento\Store\Model\ScopeInterface; |
||
0 ignored issues
–
show
|
|||
26 | use Mageprince\Faq\Model\Config\DefaultConfig; |
||
27 | |||
28 | class HeaderLink extends Link |
||
29 | { |
||
30 | /** |
||
31 | * Render header link HTML |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function _toHtml() |
||
36 | { |
||
37 | $isEnable = $this->_scopeConfig->isSetFlag( |
||
38 | DefaultConfig::CONFIG_PATH_IS_ENABLE, |
||
39 | ScopeInterface::SCOPE_STORE |
||
40 | ); |
||
41 | $isHeaderLinkEnable = $this->_scopeConfig->isSetFlag( |
||
42 | DefaultConfig::CONFIG_PATH_HEADER_LINK, |
||
43 | ScopeInterface::SCOPE_STORE |
||
44 | ); |
||
45 | if (!$isEnable || !$isHeaderLinkEnable) { |
||
46 | return ''; |
||
47 | } |
||
48 | return parent::_toHtml(); |
||
49 | } |
||
50 | } |
||
51 |
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