Passed
Push — master ( 3894cc...b6588e )
by Vladislav
06:30 queued 04:28
created

DefaultCallbackHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Core\Objects\WebSockets\Channels;
4
use Workerman\Connection\TcpConnection;
0 ignored issues
show
Bug introduced by
The type Workerman\Connection\TcpConnection was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
5
6
class DefaultCallbackHandler extends ChannelHandler
7
{
8
    public function handle($data, TcpConnection $connection): void
9
    {
10
        var_dump($data);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($data) looks like debug code. Are you sure you do not want to remove it?
Loading history...
11
    }
12
}
13