Passed
Push — master ( ec1096...92775c )
by Jonas
09:29
created

DatabaseServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 1
1
<?php
2
3
namespace Staudenmeir\LaravelMigrationViews;
4
5
use Illuminate\Support\ServiceProvider;
6
use Staudenmeir\LaravelMigrationViews\Facades\Schema;
7
8
class DatabaseServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register the service provider.
12
     *
13
     * @return void
14
     */
15 44
    public function register()
16
    {
17 44
        $this->app->bind('db.schema', function ($app) {
18 44
            return Schema::getSchemaBuilder(
19 44
                $app['db']->connection()
20
            );
21 44
        });
22 44
    }
23
}
24