| Conditions | 2 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function register() |
||
| 33 | { |
||
| 34 | // Automatically apply the package configuration |
||
| 35 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'netgsm'); |
||
| 36 | |||
| 37 | $this->app->singleton(Netgsm::class, function ($app) { |
||
|
|
|||
| 38 | $config = config('netgsm'); |
||
| 39 | |||
| 40 | if (is_null($config)) { |
||
| 41 | throw InvalidConfiguration::configurationNotSet(); |
||
| 42 | } |
||
| 43 | |||
| 44 | $client = new Client([ |
||
| 45 | 'base_uri' => $config['defaults']['base_uri'], |
||
| 46 | 'timeout' => $config['defaults']['timeout'], |
||
| 47 | ]); |
||
| 48 | |||
| 49 | return new Netgsm($client, $config['credentials'], $config['defaults']); |
||
| 50 | }); |
||
| 53 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.