NotificationServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Transmissor\Providers;
4
5
use Illuminate\Support\Facades\Blade;
6
use Illuminate\Support\ServiceProvider;
7
8 View Code Duplication
class NotificationServiceProvider extends ServiceProvider
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
    /**
11
     * Bootstrap any application services.
12
     */
13
    public function boot()
14
    {
15
        // Nothing to see here
16
    }
17
18
    /**
19
     * Register any application services.
20
     */
21
    public function register()
22
    {
23
        $loader = \Illuminate\Foundation\AliasLoader::getInstance();
24
25
        $loader->alias('Notifications', \Transmissor\Facades\Notifications::class);
26
27
        $this->app->singleton(
28
            'NotificationService', function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

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

Loading history...
29
                return app(\Transmissor\Services\NotificationService::class);
30
            }
31
        );
32
    }
33
}
34