Total Complexity | 8 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait AuthorizationHandler |
||
8 | { |
||
9 | public function authorizationException(AuthorizationException $exception) |
||
10 | { |
||
11 | $error = [[ |
||
12 | 'status' => 403, |
||
13 | 'code' => $this->getCode('authorization'), |
||
14 | 'source' => ['pointer' => $exception->getFile().':'.$exception->getLine()], |
||
15 | 'title' => __('exception::exceptions.authorization.title'), |
||
16 | 'detail' => $exception->getMessage(), |
||
17 | ]]; |
||
18 | |||
19 | $this->jsonApiResponse->setStatus(403); |
||
20 | $this->jsonApiResponse->setErrors($error); |
||
21 | } |
||
22 | |||
23 | public function generateDescription($traces) |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 | |||
34 | public function extractAction($args) |
||
39 | } |
||
40 | |||
41 | public function getWords($action) |
||
48 | } |
||
49 | } |
||
52 |
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