Code Duplication    Length = 44-44 lines in 4 locations

app/Containers/Countries/Providers/MainServiceProvider.php 1 location

@@ 16-59 (lines=44) @@
13
 *
14
 * @author  Mahmoud Zalt <[email protected]>
15
 */
16
class MainServiceProvider extends ServiceProviderAbstract
17
{
18
19
    /**
20
     * Indicates if loading of the provider is deferred.
21
     *
22
     * @var bool
23
     */
24
    protected $defer = false;
25
26
    /**
27
     * Container Service Providers.
28
     *
29
     * @var array
30
     */
31
    private $containerServiceProviders = [
32
        CountriesServiceProvider::class,
33
    ];
34
35
    /**
36
     * Container Aliases
37
     *
38
     * @var  array
39
     */
40
    private $containerAliases = [
41
        'Countries' => CountriesFacade::class,
42
    ];
43
44
    /**
45
     * Perform post-registration booting of services.
46
     */
47
    public function boot()
48
    {
49
        $this->registerServiceProviders($this->containerServiceProviders);
50
    }
51
52
    /**
53
     * Register anything in the container.
54
     */
55
    public function register()
56
    {
57
        $this->registerAliases($this->containerAliases);
58
    }
59
}
60

app/Containers/Paypal/Providers/MainServiceProvider.php 1 location

@@ 16-59 (lines=44) @@
13
 *
14
 * @author  Mahmoud Zalt <[email protected]>
15
 */
16
class MainServiceProvider extends ServiceProviderAbstract
17
{
18
19
    /**
20
     * Indicates if loading of the provider is deferred.
21
     *
22
     * @var bool
23
     */
24
    protected $defer = false;
25
26
    /**
27
     * Container Service Providers.
28
     *
29
     * @var array
30
     */
31
    private $containerServiceProviders = [
32
        PaypalServiceProvider::class,
33
    ];
34
35
    /**
36
     * Container Aliases
37
     *
38
     * @var  array
39
     */
40
    private $containerAliases = [
41
        'Paypalpayment' => PaypalPayment::class,
42
    ];
43
44
    /**
45
     * Perform post-registration booting of services.
46
     */
47
    public function boot()
48
    {
49
        $this->registerServiceProviders($this->containerServiceProviders);
50
    }
51
52
    /**
53
     * Register anything in the container.
54
     */
55
    public function register()
56
    {
57
        $this->registerAliases($this->containerAliases);
58
    }
59
}
60

app/Containers/SocialAuthentication/Providers/MainServiceProvider.php 1 location

@@ 15-58 (lines=44) @@
12
 *
13
 * @author  Mahmoud Zalt <[email protected]>
14
 */
15
class MainServiceProvider extends ServiceProviderAbstract
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

app/Containers/Stripe/Providers/MainServiceProvider.php 1 location

@@ 16-59 (lines=44) @@
13
 *
14
 * @author  Mahmoud Zalt <[email protected]>
15
 */
16
class MainServiceProvider extends ServiceProviderAbstract
17
{
18
19
    /**
20
     * Indicates if loading of the provider is deferred.
21
     *
22
     * @var bool
23
     */
24
    protected $defer = false;
25
26
    /**
27
     * Container Service Providers.
28
     *
29
     * @var array
30
     */
31
    private $containerServiceProviders = [
32
        StripeServiceProvider::class,
33
    ];
34
35
    /**
36
     * Container Aliases
37
     *
38
     * @var  array
39
     */
40
    private $containerAliases = [
41
        'Stripe' => Stripe::class,
42
    ];
43
44
    /**
45
     * Perform post-registration booting of services.
46
     */
47
    public function boot()
48
    {
49
        $this->registerServiceProviders($this->containerServiceProviders);
50
    }
51
52
    /**
53
     * Register bindings in the container.
54
     */
55
    public function register()
56
    {
57
        $this->registerAliases($this->containerAliases);
58
    }
59
}
60