| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | // Prepare the HTTP client |
||
| 23 | $client = new Client([ |
||
| 24 | 'base_uri' => Transliterator::API_BASE_URI, |
||
| 25 | ]); |
||
| 26 | |||
| 27 | $this->app->singleton(self::SERVICE_NAME, function ($app) use ($client) { |
||
|
|
|||
| 28 | return new Transliterator($client); |
||
| 29 | }); |
||
| 30 | |||
| 31 | $this->app->alias(self::SERVICE_NAME, TransliteratorContract::class); |
||
| 32 | } |
||
| 34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.