Completed
Push — master ( fa257f...84e799 )
by Adam
05:01
created

TableServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 10
ccs 8
cts 8
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace App\Providers;
4
5
use App\Services\GuestTableService;
6
use App\Services\ReservationTableService;
7
use App\Services\RoomTableService;
8
use Illuminate\Support\ServiceProvider;
9
10
class TableServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application services.
14
     *
15
     * @return void
16
     */
17 37
    public function boot()
18
    {
19
        //
20 37
    }
21
22
    /**
23
     * Register the application services.
24
     *
25
     * @return void
26
     */
27
    public function register()
28
    {
29 37
        $this->app->bind('App\Services\GuestTableService', 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

29
        $this->app->bind('App\Services\GuestTableService', 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...
30 7
            return new GuestTableService();
31 37
        });
32 37
        $this->app->bind('App\Services\ReservationTableService', 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

32
        $this->app->bind('App\Services\ReservationTableService', 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...
33 2
            return new ReservationTableService();
34 37
        });
35 37
        $this->app->bind('App\Services\RoomTableService', 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

35
        $this->app->bind('App\Services\RoomTableService', 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...
36 8
            return new RoomTableService();
37 37
        });
38 37
    }
39
}
40