Total Complexity | 3 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
17 | class Write extends Job |
||
18 | { |
||
19 | /** |
||
20 | * @var string|array |
||
21 | */ |
||
22 | public $payload = null; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | public $parameters = null; |
||
28 | |||
29 | /** |
||
30 | * Write constructor. |
||
31 | * |
||
32 | * @param array $parameters |
||
33 | * @param string|array $payload |
||
34 | */ |
||
35 | public function __construct(array $parameters, $payload) |
||
44 | ] |
||
45 | ); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return void |
||
50 | */ |
||
51 | public function handle() |
||
52 | { |
||
53 | InfluxDbServiceProvider::getInstance() |
||
54 | ->write( |
||
|
|||
55 | $this->parameters, |
||
56 | $this->payload |
||
57 | ); |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | public function tags(): array |
||
66 | } |
||
67 | } |
||
68 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.