Completed
Push — master ( 758c52...a36606 )
by Nicolas
05:12
created

MigrationPublisher   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDestinationPath() 0 4 1
A getSourcePath() 0 4 1
1
<?php
2
3
namespace Nwidart\Modules\Publishing;
4
5
class MigrationPublisher extends AssetPublisher
6
{
7
    /**
8
     * Get destination path.
9
     *
10
     * @return string
11
     */
12 1
    public function getDestinationPath()
13
    {
14 1
        return $this->repository->config('paths.migration');
15
    }
16
17
    /**
18
     * Get source path.
19
     *
20
     * @return string
21
     */
22 1
    public function getSourcePath()
23
    {
24 1
        return $this->getModule()->getExtraPath($this->repository->config('paths.generator.migration'));
0 ignored issues
show
Bug introduced by
The method getExtraPath cannot be called on $this->getModule() (of type string).

Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.

Loading history...
25
    }
26
}
27