Test Failed
Push — master ( 20d9e4...ed42d0 )
by Burak
05:25
created

ContactServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 1
cp 0
crap 2
rs 10
c 1
b 0
f 0
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
Unused Code introduced by
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