These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | use Kwkm\MkLiveStatusClient as mk; |
||
3 | |||
4 | require __DIR__ . '/vendor/autoload.php'; |
||
5 | |||
6 | $client = new mk\Client( |
||
7 | array( |
||
8 | 'socketType' => 'unix', |
||
9 | 'socketPath' => '/var/run/nagios/rw/live', |
||
10 | ) |
||
11 | ); |
||
12 | |||
13 | $parser = new mk\Parser(); |
||
14 | |||
15 | $lql = new mk\Lql(); |
||
0 ignored issues
–
show
|
|||
16 | $lql->table(mk\Table::SERVICES) |
||
0 ignored issues
–
show
The method
table() does not seem to exist on object<Kwkm\MkLiveStatusClient\Lql> .
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. ![]() |
|||
17 | ->columns(array('host_name', 'description', 'state'))-> |
||
18 | filterEqual('description', 'PING'); |
||
19 | |||
20 | var_dump($parser->get($client->execute($lql))); |
||
21 | |||
22 |
This check looks for function calls that miss required arguments.