| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | 13 | public function execute() |
|
| 52 | { |
||
| 53 | 13 | $repositoryPath = $this->mapping->getRepositoryPath(); |
|
| 54 | |||
| 55 | 13 | if ($this->rootModuleFile->hasPathMapping($repositoryPath)) { |
|
| 56 | 1 | $this->previousMapping = $this->rootModuleFile->getPathMapping($repositoryPath); |
|
| 57 | } |
||
| 58 | |||
| 59 | 13 | $this->rootModuleFile->addPathMapping($this->mapping); |
|
| 60 | 13 | } |
|
| 61 | |||
| 74 |