Completed
Push — master ( 7cd14b...a45726 )
by Dmitry
02:33
created

Convention   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 4
c 3
b 1
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A migrationTemplatePath() 0 7 1
A migrationPath() 0 4 1
A makeMigrationSignature() 0 4 1
A migrateSignature() 0 4 1
1
<?php
2
3
namespace Tarantool\Mapper\Integration\Laravel;
4
5
class Convention
6
{
7
    public function migrationTemplatePath()
8
    {
9
        return implode(DIRECTORY_SEPARATOR, [
10
            dirname(dirname(dirname(__DIR__))),
11
            'resources', 'views', 'migration.php',
12
        ]);
13
    }
14
15
    public function migrationPath()
16
    {
17
        return resource_path('migrations');
18
    }
19
20
    public function makeMigrationSignature()
21
    {
22
        return 'make:migration {name}';
23
    }
24
25
    public function migrateSignature()
26
    {
27
        return 'migrate';
28
    }
29
}
30