| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | abstract class GenericButton |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var Context |
||
| 30 | */ |
||
| 31 | protected $context; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param \Magento\Backend\Block\Widget\Context $context |
||
| 35 | */ |
||
| 36 | public function __construct(Context $context) |
||
| 37 | { |
||
| 38 | $this->context = $context; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Return model ID |
||
| 43 | * |
||
| 44 | * @return int|null |
||
| 45 | */ |
||
| 46 | public function getModelId() |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Generate url by route and parameters |
||
| 53 | * |
||
| 54 | * @param string $route |
||
| 55 | * @param array $params |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getUrl($route = '', $params = []) |
||
| 63 |
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