| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function register() |
||
| 28 | { |
||
| 29 | /** @var Repository $config */ |
||
| 30 | $config = $this->app->make(Repository::class); |
||
| 31 | |||
| 32 | |||
| 33 | $this->app->singleton(Client::class, function (Container $app) use ($config) { |
||
|
|
|||
| 34 | return new Client($config->get('gitter.token')); |
||
| 35 | }); |
||
| 36 | |||
| 37 | |||
| 38 | $this->app->singleton('bot', function (Container $app) { |
||
| 39 | /** @var Client $client */ |
||
| 40 | $client = $app->make(Client::class); |
||
| 41 | return $client->http->getCurrentUser()->wait(); |
||
| 42 | }); |
||
| 43 | } |
||
| 44 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.