Completed
Push — feature/database-migrations ( b550b6 )
by Avtandil
02:27
created

Migration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSchemaBuilder() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Longman\TelegramBot\Database;
5
6
use Illuminate\Database\Migrations\Migration as BaseMigration;
7
use Illuminate\Database\Schema\Builder;
8
9
use function app;
10
11
abstract class Migration extends BaseMigration
12
{
13
    public function getSchemaBuilder(): Builder
14
    {
15
        return app('db')->connection($this->getConnection())->getSchemaBuilder();
16
    }
17
}
18