Issues (85)

app/Providers/Project/ContactServiceProvider.php (1 issue)

Severity
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
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

18
        $this->app->bind(ContactServiceInterface::class, function (/** @scrutinizer ignore-unused */ $app) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
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