DatabaseServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

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