swinn-io /
server
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Providers\Project; |
||
| 4 | |||
| 5 | use App\Interfaces\UserServiceInterface; |
||
| 6 | use App\Services\UserService; |
||
| 7 | use Illuminate\Support\ServiceProvider; |
||
| 8 | |||
| 9 | class UserServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Register services. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | public function register() |
||
| 17 | { |
||
| 18 | $this->app->bind(UserServiceInterface::class, function ($app) { |
||
|
0 ignored issues
–
show
|
|||
| 19 | return new UserService(); |
||
| 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.