Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | 12 | public function run(): string |
|
11 | { |
||
12 | 12 | $this->log('Start the handler for execution:', self::class); |
|
13 | |||
14 | 12 | if ($this->sourceDoesntExists()) { |
|
15 | 12 | return Status::NOT_FOUND; |
|
16 | } |
||
17 | |||
18 | 12 | if ($this->force || $this->doesntExists()) { |
|
19 | 12 | $this->main(); |
|
20 | |||
21 | 12 | return Status::COPIED; |
|
22 | } |
||
23 | |||
24 | 1 | return Status::SKIPPED; |
|
25 | } |
||
34 |