Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function beforeSetLayout( |
||
39 | View $subject |
||
40 | ) { |
||
41 | $typeRelease = $this->config->getTypeRelease(); |
||
42 | |||
43 | if ($typeRelease !== 'not_applicable') { |
||
44 | $message = __('Are you sure you want to do this?'); |
||
45 | $url = $subject->getUrl('getnet/order/paymentRelease'); |
||
46 | |||
47 | $subject->addButton( |
||
48 | 'payment_release', |
||
49 | [ |
||
50 | 'label' => __('Payment Release'), |
||
51 | 'onclick' => "confirmSetLocation('{$message}', '{$url}')", |
||
52 | 'class' => 'reset', |
||
53 | ], |
||
54 | -1 |
||
55 | ); |
||
59 |
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