Completed
Pull Request — master (#10)
by ARCANEDEV
06:09
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

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
ccs 4
cts 4
cp 1
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php namespace Arcanesoft\Blog\Bases;
2
3
use Arcanedev\Support\Bases\Migration as BaseMigration;
4
5
/**
6
 * Class     Migration
7
 *
8
 * @package  Arcanesoft\Blog\Bases
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class Migration extends BaseMigration
0 ignored issues
show
Deprecated Code introduced by
The class Arcanedev\Support\Bases\Migration has been deprecated with message: Use the `Arcanedev\Support\Database\Migration` instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
12
{
13
    /* -----------------------------------------------------------------
14
     |  Constructor
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Make a migration instance.
20
     */
21 32
    public function __construct()
22
    {
23 32
        $this->setConnection(config('arcanesoft.blog.database.connection', null));
24 32
        $this->setPrefix(config('arcanesoft.blog.database.prefix', ''));
25 32
    }
26
}
27