Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.0175 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 9 | public function run(): string |
|
10 | { |
||
11 | 9 | if (! $this->force && $this->exists()) { |
|
12 | return Status::SKIPPED; |
||
13 | } |
||
14 | |||
15 | 9 | $source = $this->load($this->source_path); |
|
16 | 9 | $target = $this->load($this->target_path); |
|
17 | |||
18 | 9 | $result = $this->compare($source, $target); |
|
19 | |||
20 | 9 | $this->store($this->target_path, $result); |
|
21 | |||
22 | 9 | return Status::COPIED; |
|
23 | } |
||
25 |