Total Complexity | 11 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class IncomingWebhookController extends Controller |
||
9 | { |
||
10 | public function __construct() |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * @throws \Exception |
||
17 | */ |
||
18 | public function __invoke() |
||
19 | { |
||
20 | $message = json_decode(Message::fromRawPostData()['Message'], true); |
||
21 | $detail = $message['detail']; |
||
22 | $status = $detail['status']; |
||
23 | |||
24 | try { |
||
25 | $this->fireEventFor($status, $message); |
||
26 | } catch (\Exception $e) { |
||
27 | throw new \Exception($e); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param $status |
||
33 | * @param $message |
||
34 | * @throws \Exception |
||
35 | */ |
||
36 | public function fireEventFor($status, $message) |
||
62 | } |
||
63 | } |
||
65 |
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