| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function graphql(Message $msg, array $matches) |
||
|
|
|||
| 52 | { |
||
| 53 | $url = 'https://api.github.com/graphql'; |
||
| 54 | |||
| 55 | $this->postAsync($url, ['body' => '{"query": "query { viewer { login }}"}']) |
||
| 56 | ->then( |
||
| 57 | function (ResponseInterface $response) use ($msg) { |
||
| 58 | $json = $response->getBody(); |
||
| 59 | $msg->reply($json); |
||
| 60 | } |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.