BuilderServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
1
<?php
2
3
namespace Napp\Core\Dbal\Builder;
4
5
use Illuminate\Database\Query\Builder;
6
use Illuminate\Support\ServiceProvider;
7
8
class BuilderServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * @return void
12
     */
13
    public function boot()
14
    {
15
        Builder::mixin(new ReplaceIntoBuilder());
16
        $builder = new InsertOnDuplicateKeyBuilder();
17
        $builder();
18
    }
19
}
20