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

Migration::getSchemaBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
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