Completed
Push — master ( a52c4e...f2133c )
by Mahmoud
05:10
created

MainServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 4
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Containers\SocialAuthentication\Providers;
4
5
use App\Port\Provider\Abstracts\ServiceProviderAbstract;
6
use Laravel\Socialite\Facades\Socialite;
7
8
/**
9
 * Class MainServiceProvider.
10
 *
11
 * The Main Service Provider of this container, it will be automatically registered in the framework.
12
 *
13
 * @author  Mahmoud Zalt <[email protected]>
14
 */
15 View Code Duplication
class MainServiceProvider extends ServiceProviderAbstract
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...
16
{
17
18
    /**
19
     * Indicates if loading of the provider is deferred.
20
     *
21
     * @var bool
22
     */
23
    protected $defer = false;
24
25
    /**
26
     * Container Service Providers.
27
     *
28
     * @var array
29
     */
30
    private $containerServiceProviders = [
31
32
    ];
33
34
    /**
35
     * Container Aliases
36
     *
37
     * @var  array
38
     */
39
    private $containerAliases = [
40
        'Socialite' => Socialite::class,
41
    ];
42
43
    /**
44
     * Perform post-registration booting of services.
45
     */
46
    public function boot()
47
    {
48
        $this->registerServiceProviders($this->containerServiceProviders);
49
    }
50
51
    /**
52
     * Register bindings in the container.
53
     */
54
    public function register()
55
    {
56
        $this->registerAliases($this->containerAliases);
57
    }
58
}
59