Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class DefaultCallbackHandler extends ChannelHandler |
||
12 | { |
||
13 | /** |
||
14 | * Обработчик исключений которые приходят от API |
||
15 | * |
||
16 | * @param ExceptionResponse $dtoMessage |
||
17 | * @param TcpConnection $connection |
||
18 | * @return void |
||
19 | * @throws ApiException |
||
20 | */ |
||
21 | public function apiExceptionHandler(ExceptionResponse $dtoMessage, TcpConnection $connection): void |
||
22 | { |
||
23 | throw new ApiException($dtoMessage->getReturnMessage()); |
||
24 | } |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Обработчик сообщения о коннекте |
||
29 | * |
||
30 | * @param WebSocketConnectionResponse $message |
||
31 | * @param TcpConnection $connection |
||
32 | * @return void |
||
33 | */ |
||
34 | public function connectionHandle(WebSocketConnectionResponse $message, TcpConnection $connection): void |
||
35 | { |
||
36 | var_dump($message); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Обработчик обычного тела сообщения |
||
41 | * |
||
42 | * @param IResponseDataInterface $message |
||
43 | * @param TcpConnection $connection |
||
44 | * @return void |
||
45 | */ |
||
46 | public function handle(IResponseDataInterface $message, TcpConnection $connection): void |
||
49 | } |
||
50 | } |
||
51 |
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