| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | protected static function getPredefined($key) |
||
| 19 | { |
||
| 20 | $predefined = [ |
||
| 21 | 'back' => [ |
||
| 22 | 'label' => __('Back'), |
||
| 23 | 'icon' => 'arrow left', |
||
| 24 | 'weight' => 10000, |
||
| 25 | 'attr' => [ |
||
| 26 | 'href' => $_SERVER['HTTP_REFERER']?? 'javascript:window.history.back()' |
||
| 27 | ], |
||
| 28 | ], |
||
| 29 | 'save' => [ |
||
| 30 | 'label' => __('Save'), |
||
| 31 | 'icon' => 'save', |
||
| 32 | ], |
||
| 33 | 'edit' => [ |
||
| 34 | 'label' => __('Edit'), |
||
| 35 | 'icon' => 'edit' |
||
| 36 | ], |
||
| 37 | 'delete' => [ |
||
| 38 | 'label' => __('Delete'), |
||
| 39 | 'icon' => 'trash' |
||
| 40 | ], |
||
| 41 | ]; |
||
| 42 | |||
| 43 | return $predefined[$key]?? ['label' => $key]; |
||
| 44 | } |
||
| 96 |
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