BuilderServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
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