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

Install::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
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