| Conditions | 5 |
| Paths | 5 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function initAnnotation(array $properties) { |
||
| 28 | if (isset($properties[0])) { |
||
| 29 | $this->name = $properties[0]; |
||
| 30 | unset($properties[0]); |
||
| 31 | if (isset($properties[1])) { |
||
| 32 | $this->level = $properties[1]; |
||
| 33 | unset($properties[1]); |
||
| 34 | } |
||
| 35 | } else if (isset($properties['name'])) { |
||
| 36 | $this->name = $properties['name']; |
||
| 37 | if (isset($properties['level'])) { |
||
| 38 | $this->level = $properties['level']; |
||
| 39 | } |
||
| 40 | } else { |
||
| 41 | throw new \Exception('Permission annotation must have a name'); |
||
| 42 | } |
||
| 45 |
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