Completed
Push — master ( c57d80...dcba90 )
by Dmitry
03:15
created

Convention::migrationTemplatePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Tarantool\Mapper\Integration\Laravel;
4
5
class Convention
6
{
7 1
    public function migrationTemplatePath()
8
    {
9 1
        return implode(DIRECTORY_SEPARATOR, [
10 1
            dirname(dirname(dirname(__DIR__))),
11 1
            'resources', 'views', 'migration.php',
12
        ]);
13
    }
14
15 1
    public function migrationPath()
16
    {
17 1
        return resource_path('migrations');
18
    }
19
20 1
    public function makeMigrationSignature()
21
    {
22 1
        return 'make:migration {name}';
23
    }
24
25 1
    public function migrateSignature()
26
    {
27 1
        return 'migrate';
28
    }
29
}
30