Completed
Push — devops/catch-breaking-changes-... ( 88c9a6 )
by Bas
28s queued 18s
created

MigrationCreator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
c 0
b 0
f 0
dl 0
loc 22
ccs 3
cts 5
cp 0.6
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 $customStubPath
15
     */
16 207
    public function __construct(Filesystem $files, $customStubPath)
17
    {
18 207
        $this->files = $files;
19 207
        $this->customStubPath = $customStubPath;
20
    }
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