1 | <?php |
||
2 | |||
3 | namespace LaravelLoqate; |
||
4 | |||
5 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
6 | { |
||
7 | 2 | public function boot() |
|
8 | { |
||
9 | 2 | if ($this->app->runningInConsole()) { |
|
10 | 2 | $this->commands([ |
|
11 | 2 | ]); |
|
12 | } |
||
13 | } |
||
14 | |||
15 | 2 | public function register() |
|
16 | { |
||
17 | 2 | $this->app->bind('loqate-api', function ($app) { |
|
0 ignored issues
–
show
|
|||
18 | 2 | $key = config('services.loqate.key'); |
|
19 | 2 | if (!$key) { |
|
20 | throw new LoqateException('Please specify api key: services.loqate.key'); |
||
21 | } |
||
22 | |||
23 | 2 | return new LoqateApi($key); |
|
24 | 2 | }); |
|
25 | } |
||
26 | } |
||
27 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.