Passed
Push — next ( ed4ce4...be2ec6 )
by Bas
12:50
created

MigrationCreator::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 4
dl 0
loc 20
ccs 0
cts 8
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LaravelFreelancerNL\Aranguent\Migrations;
4
5
use Illuminate\Database\Migrations\MigrationCreator as IlluminateMigrationCreator;
6
use Illuminate\Filesystem\Filesystem;
7
8
class MigrationCreator extends IlluminateMigrationCreator
9
{
10
    /**
11
     * Create a new migration creator instance.
12
     *
13
     * @param Filesystem $files
14
     * @param string|null $customStubPath
15
     */
16
    public function __construct(Filesystem $files, $customStubPath = null)
17
    {
18 210
        $this->files = $files;
19
20 210
        parent::__construct($files, $customStubPath);
21
    }
22 210
23 210
    /**
24
     * Get the path to the stubs.
25
     *
26
     * @return string
27
     */
28
    public function stubPath()
29
    {
30
        return __DIR__ . '/../../stubs';
31
    }
32
}
33