1 | <?php |
||
2 | |||
3 | namespace App\Providers\Project; |
||
4 | |||
5 | use App\Interfaces\ContactServiceInterface; |
||
6 | use App\Services\ContactService; |
||
7 | use Illuminate\Support\ServiceProvider; |
||
8 | |||
9 | class ContactServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | /** |
||
12 | * Register services. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function register() |
||
17 | { |
||
18 | $this->app->bind(ContactServiceInterface::class, function ($app) { |
||
0 ignored issues
–
show
|
|||
19 | return new ContactService(); |
||
20 | }); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Bootstrap services. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function boot() |
||
29 | { |
||
30 | // |
||
31 | } |
||
32 | } |
||
33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.