Failed Conditions
Push — refactor/improve-static-analys... ( 8da3ef...a7b39f )
by Bas
09:53
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
declare(strict_types=1);
4
5
namespace LaravelFreelancerNL\Aranguent\Migrations;
6
7
use Illuminate\Database\Migrations\MigrationCreator as IlluminateMigrationCreator;
8
use Illuminate\Filesystem\Filesystem;
9
10
class MigrationCreator extends IlluminateMigrationCreator
11
{
12
    /**
13
     * Create a new migration creator instance.
14
     *
15
     * @param Filesystem $files
16
     * @param string $customStubPath
17
     */
18 210
    public function __construct(Filesystem $files, $customStubPath)
19
    {
20 210
        $this->files = $files;
21
        $this->customStubPath = $customStubPath;
22 210
    }
23 210
24
    /**
25
     * Get the path to the stubs.
26
     *
27
     * @return string
28
     */
29
    public function stubPath()
30
    {
31
        return __DIR__ . '/../../stubs';
32
    }
33
}
34