Total Complexity | 6 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class Checker extends Field |
||
12 | { |
||
13 | /** |
||
14 | * Path to block template |
||
15 | */ |
||
16 | const CHECK_TEMPLATE = 'B2Binpay_Payment::system/config/check.phtml'; |
||
17 | |||
18 | /** |
||
19 | * Set template to itself |
||
20 | * |
||
21 | * @return $this |
||
22 | */ |
||
23 | protected function _prepareLayout() |
||
24 | { |
||
25 | parent::_prepareLayout(); |
||
26 | |||
27 | if (!$this->getTemplate()) { |
||
28 | $this->setTemplate(static::CHECK_TEMPLATE); |
||
29 | } |
||
30 | |||
31 | return $this; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param AbstractElement $element |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function render(AbstractElement $element) |
||
40 | { |
||
41 | $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue(); |
||
42 | |||
43 | return parent::render($element); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param AbstractElement $element |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | public function _getElementHtml(AbstractElement $element) |
||
52 | { |
||
53 | return $this->_toHtml(); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getAjaxUrl() |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * @return mixed |
||
66 | * @throws \Magento\Framework\Exception\LocalizedException |
||
67 | */ |
||
68 | public function getButtonHtml() |
||
74 | } |
||
75 | } |
||
76 |
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