Completed
Push — master ( 70421f...8ae839 )
by ARCANEDEV
08:37
created

Migration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1.008

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
ccs 4
cts 5
cp 0.8
cc 1
eloc 3
nc 1
nop 0
crap 1.008
1
<?php namespace Arcanedev\LaravelTracker\Bases;
2
3
use Arcanedev\Support\Bases\Migration as BaseMigration;
4
5
/**
6
 * Class     Migration
7
 *
8
 * @package  Arcanedev\LaravelTracker\Bases
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class Migration extends BaseMigration
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Migration constructor.
19
     */
20 60
    public function __construct()
21
    {
22 60
        $this->setConnection(config('laravel-tracker.database.connection', null))
23 60
             ->setPrefix(config('laravel-tracker.database.prefix', 'tracker_'));
24 60
    }
25
}
26