| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | class BackButton extends GenericButton implements ButtonProviderInterface |
||
| 27 | { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Back button |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function getButtonData() |
||
| 35 | { |
||
| 36 | return [ |
||
| 37 | 'label' => __('Back'), |
||
| 38 | 'on_click' => sprintf("location.href = '%s';", $this->getBackUrl()), |
||
| 39 | 'class' => 'back', |
||
| 40 | 'sort_order' => 10 |
||
| 41 | ]; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get URL for back (reset) button |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getBackUrl() |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
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