| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class Install extends Processor |
||
| 9 | { |
||
| 10 | public function run(): string |
||
| 11 | { |
||
| 12 | $this->log('Start the handler for execution:', self::class); |
||
| 13 | |||
| 14 | if ($this->sourceDoesntExists()) { |
||
| 15 | return Status::NOT_FOUND; |
||
| 16 | } |
||
| 17 | |||
| 18 | if ($this->force || $this->doesntExists()) { |
||
| 19 | $this->main(); |
||
| 20 | |||
| 21 | return Status::COPIED; |
||
| 22 | } |
||
| 23 | |||
| 24 | return Status::SKIPPED; |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function sourceDoesntExists(): bool |
||
| 32 | } |
||
| 33 | } |
||
| 34 |