| Total Complexity | 12 |
| Total Lines | 85 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ActionBar extends View |
||
| 10 | { |
||
| 11 | public $ui = 'actionbar segment'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Collection |
||
| 15 | */ |
||
| 16 | protected static $buttons; |
||
| 17 | |||
| 18 | protected static function getPredefined($key) |
||
| 44 | } |
||
| 45 | |||
| 46 | public function __construct($label = null, $class = null) |
||
| 47 | { |
||
| 48 | parent::__construct($label, $class); |
||
| 49 | |||
| 50 | self::$buttons = collect(); |
||
| 51 | } |
||
| 52 | |||
| 53 | public function renderView() |
||
| 54 | { |
||
| 55 | $this->prepareButtons(); |
||
| 56 | |||
| 57 | parent::renderView(); |
||
| 58 | } |
||
| 59 | |||
| 60 | protected function prepareButtons() |
||
| 66 | } |
||
| 67 | } |
||
| 68 | |||
| 69 | public static function addButton($button) |
||
| 70 | { |
||
| 71 | if (is_string($button)) { |
||
| 72 | $button = self::getPredefined($button); |
||
| 73 | } |
||
| 74 | |||
| 75 | if (is_array($button)) { |
||
| 76 | $button = new ActionButton($button); |
||
| 77 | } |
||
| 78 | |||
| 79 | self::$buttons->add($button); |
||
| 80 | |||
| 81 | return $button; |
||
| 82 | } |
||
| 83 | |||
| 84 | public static function addButtons($buttons) |
||
| 88 | } |
||
| 89 | } |
||
| 90 | |||
| 91 | public static function clear() |
||
| 94 | } |
||
| 95 | } |
||
| 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