| Total Complexity | 10 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class fieldsetGenerator |
||
| 15 | { |
||
| 16 | private $attributes; |
||
| 17 | private $legend; |
||
| 18 | private $legendAttributes; |
||
| 19 | private $isOpened = false; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * fieldsetGenerator constructor. |
||
| 23 | * |
||
| 24 | * @param $attributes |
||
| 25 | */ |
||
| 26 | public function __construct($attributes) |
||
| 27 | { |
||
| 28 | if(!$attributes instanceof AttributesBuilder) |
||
| 29 | $attributes = new AttributesBuilder($attributes); |
||
| 30 | $this->attributes = $attributes; |
||
| 31 | if($this->attributes->has('legend')) |
||
| 32 | { |
||
| 33 | $this->attributes->Ignore('legend'); |
||
| 34 | $this->legend = $this->attributes->get('legend'); |
||
| 35 | if($this->attributes->has('legend-attributes')) |
||
| 36 | { |
||
| 37 | $this->attributes->Ignore('legend-attributes'); |
||
| 38 | $this->legendAttributes = new AttributesBuilder($this->attributes->get('legend-attributes')); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return AttributesBuilder |
||
| 45 | */ |
||
| 46 | public function Attributes() |
||
| 47 | { |
||
| 48 | return $this->attributes; |
||
| 49 | } |
||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function Open() |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function Close() |
||
| 80 | } |
||
| 81 | |||
| 82 | } |
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