Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
OrderlyServiceProvider
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 register
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
 boot
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Baril\Orderly;
4
5use Baril\Orderly\Console\FixPositionsCommand;
6use Baril\Orderly\Mixins\Builder as BuilderMixin;
7use Baril\Orderly\Mixins\Grammar as GrammarMixin;
8use Illuminate\Database\Query\Builder;
9use Illuminate\Database\Query\Grammars\Grammar;
10use Illuminate\Support\ServiceProvider;
11
12class OrderlyServiceProvider extends ServiceProvider
13{
14    public function register()
15    {
16        $this->commands([
17            FixPositionsCommand::class,
18        ]);
19    }
20
21    public function boot()
22    {
23        Builder::mixin(new BuilderMixin());
24        Grammar::mixin(new GrammarMixin());
25    }
26}