Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3.072 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 9 | public function run(): string |
|
10 | { |
||
11 | 9 | $this->log('Start the handler for execution:', self::class); |
|
12 | |||
13 | 9 | if (! $this->force && $this->exists()) { |
|
14 | $this->log('Skip processing:', self::class); |
||
15 | |||
16 | return Status::SKIPPED; |
||
17 | } |
||
18 | |||
19 | 9 | $source = $this->load($this->source_path); |
|
20 | 9 | $target = $this->load($this->target_path); |
|
21 | |||
22 | 9 | $result = $this->compare($source, $target); |
|
23 | |||
24 | 9 | $this->store($this->target_path, $result); |
|
25 | |||
26 | 9 | return Status::COPIED; |
|
27 | } |
||
29 |