BrightComponentsServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A bootResponseMacros() 0 4 1
1
<?php
2
3
namespace BrightComponents\Common;
4
5
use Illuminate\Support\Facades\Response;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
8
class BrightComponentsServiceProvider extends BaseServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        $this->bootResponseMacros();
16
    }
17
18
    /**
19
     * Boot the Response macros.
20
     */
21
    public function bootResponseMacros()
22
    {
23
        Response::mixin(new \BrightComponents\Common\Macros\Response);
24
    }
25
}
26