AppServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 8
c 2
b 0
f 1
dl 0
loc 30
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A mergeConfig() 0 9 1
A register() 0 3 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class AppServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
    }
17
18
    /**
19
     * Register any application services.
20
     *
21
     * @return void
22
     */
23
    public function register()
24
    {
25
        $this->mergeConfig();
26
    }
27
28
    private function mergeConfig()
29
    {
30
        $this->mergeConfigFrom(
31
            config_path('rabbitmq.php'),
32
            'rabbitmq'
33
        );
34
        $this->mergeConfigFrom(
35
            config_path('sentry.php'),
36
            'sentry'
37
        );
38
    }
39
}
40