Migration::checkConnection()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace PragmaRX\Tracker\Support;
4
5
use PragmaRX\Support\Migration as PragmaRxMigration;
6
7
abstract class Migration extends PragmaRxMigration
8
{
9
    protected function checkConnection()
10
    {
11
        $this->manager = app()->make('db');
12
13
        $this->connection = $this->manager->connection(config('tracker.connection'));
14
15
        parent::checkConnection();
16
    }
17
}
18