| Conditions | 7 |
| Paths | 8 |
| Total Lines | 22 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function initAnnotation(array $properties) { |
||
| 30 | if (isset($properties[0])) { |
||
| 31 | $this->role = $properties[0]; |
||
| 32 | unset($properties[0]); |
||
| 33 | if (isset($properties[1])) { |
||
| 34 | $this->resource = $properties[1]; |
||
| 35 | unset($properties[1]); |
||
| 36 | if (isset($properties[2])) { |
||
| 37 | $this->permission = $properties[2]; |
||
| 38 | unset($properties[2]); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } else if (isset($properties['role'])) { |
||
| 42 | $this->role = $properties['role']; |
||
| 43 | if (isset($properties['resource'])) { |
||
| 44 | $this->resource = $properties['resource']; |
||
| 45 | } |
||
| 46 | if (isset($properties['permission'])) { |
||
| 47 | $this->permission = $properties['permission']; |
||
| 48 | } |
||
| 49 | } else { |
||
| 50 | throw new \Exception('Allow annotation must have a role'); |
||
| 51 | } |
||
| 54 |
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