Passed
Pull Request — main (#84)
by Andrey
59:33 queued 44:34
created

Install   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 1
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Services\Processors;
4
5
use Helldar\LaravelLangPublisher\Constants\Status;
6
7
final class Install extends Processor
8
{
9
    public function run(): string
10
    {
11
        $source = $this->load($this->source_path);
12
        $target = $this->load($this->target_path);
13
14
        $result = $this->compare($source, $target);
15
16
        $this->store($this->target_path, $result);
17
18
        return Status::COPIED;
19
    }
20
}
21