AssetPublisher   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSourcePath() 0 4 1
A getDestinationPath() 0 3 1
1
<?php
2
3
namespace Rawilk\LaravelModules\Publishing;
4
5
use Rawilk\LaravelModules\Support\Config\GenerateConfigReader;
6
7
class AssetPublisher extends Publisher
8
{
9
    /** @var bool */
10
    protected $showMessage = false;
11
12
    public function getDestinationPath(): string
13
    {
14
        return $this->repository->assetPath($this->module->getLowerName());
15
    }
16
17
    public function getSourcePath(): string
18
    {
19
        return $this->getModule()->getExtraPath(
20
            GenerateConfigReader::read('assets')->getPath()
21
        );
22
    }
23
}
24