Completed
Push — master ( 2ccb51...4b9a6b )
by ARCANEDEV
02:56
created

Migration::setTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
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
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Make a migration instance.
19
     */
20
    public function __construct()
21
    {
22
        $this->setConnection(config('arcanesoft.blog.database.connection', null));
0 ignored issues
show
Bug introduced by
The method setConnection() does not seem to exist on object<Arcanesoft\Blog\Bases\Migration>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
23
        $this->setPrefix(config('arcanesoft.blog.database.prefix', ''));
0 ignored issues
show
Bug introduced by
The method setPrefix() does not seem to exist on object<Arcanesoft\Blog\Bases\Migration>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
24
    }
25
}
26