| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class ForbiddenException extends Exception |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | */ |
||
| 27 | protected $code = 403; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritDoc} |
||
| 31 | */ |
||
| 32 | protected $messageTemplate = 'Identity is not authorized to perform `%s` on `%s`.'; |
||
| 33 | /** |
||
| 34 | * Policy check result. |
||
| 35 | * |
||
| 36 | * @var \Authorization\Policy\ResultInterface|null |
||
|
|
|||
| 37 | */ |
||
| 38 | protected $result; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Returns policy check result if passed to the exception. |
||
| 42 | * |
||
| 43 | * @param \Authorization\Policy\ResultInterface|null $result Result |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setResult(?ResultInterface $result) |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Returns policy check result if passed to the exception. |
||
| 55 | * |
||
| 56 | * @return \Authorization\Policy\ResultInterface|null |
||
| 57 | */ |
||
| 58 | public function getResult(): ?ResultInterface |
||
| 63 |
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