Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
26 | class DeleteButton extends GenericButton implements ButtonProviderInterface |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Delete button |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getButtonData() |
||
35 | { |
||
36 | $data = []; |
||
37 | if ($this->getModelId()) { |
||
38 | $data = [ |
||
39 | 'label' => __('Delete FAQ'), |
||
40 | 'class' => 'delete', |
||
41 | 'on_click' => 'deleteConfirm(\'' . __( |
||
42 | 'Are you sure you want to do this?' |
||
43 | ) . '\', \'' . $this->getDeleteUrl() . '\')', |
||
44 | 'sort_order' => 20, |
||
45 | ]; |
||
46 | } |
||
47 | return $data; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Get URL for delete button |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getDeleteUrl() |
||
58 | } |
||
59 | } |
||
60 |
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