| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function register() |
||
| 19 | { |
||
| 20 | $httpClient = new HttpClient(); |
||
| 21 | $key = config('services.authy.secret'); |
||
| 22 | |||
| 23 | $this->app->singleton('rinvex.authy.app', function ($app) use ($httpClient, $key) { |
||
|
|
|||
| 24 | return new AuthyApp($httpClient, $key); |
||
| 25 | }); |
||
| 26 | $this->app->alias('rinvex.authy.app', AuthyApp::class); |
||
| 27 | |||
| 28 | $this->app->singleton('rinvex.authy.user', function ($app) use ($httpClient, $key) { |
||
| 29 | return new AuthyUser($httpClient, $key); |
||
| 30 | }); |
||
| 31 | $this->app->alias('rinvex.authy.user', AuthyUser::class); |
||
| 32 | |||
| 33 | $this->app->singleton('rinvex.authy.token', function ($app) use ($httpClient, $key) { |
||
| 34 | return new AuthyToken($httpClient, $key); |
||
| 35 | }); |
||
| 36 | $this->app->alias('rinvex.authy.token', AuthyToken::class); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.