Passed
Push — next ( a87628...835774 )
by Bas
02:38
created

MigrationCreator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
c 0
b 0
f 0
dl 0
loc 22
ccs 4
cts 6
cp 0.6667
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A stubPath() 0 3 1
A __construct() 0 4 1
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 209
    public function __construct(Filesystem $files, $customStubPath = null)
17
    {
18 209
        $this->files = $files;
19 209
        $this->customStubPath = $customStubPath;
20 209
    }
21
22
    /**
23
     * Get the path to the stubs.
24
     *
25
     * @return string
26
     */
27
    public function stubPath()
28
    {
29
        return __DIR__ . '/../../stubs';
30
    }
31
}
32