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

MigrationPublisher::getSourcePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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