Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
42 | 2 | public function make(PackageInterface $package, $sourceDir) |
|
43 | { |
||
44 | 2 | $parser = $this->parserFactory->make($package, $sourceDir); |
|
45 | |||
46 | 2 | if ($this->config->hasPathMappingTranslations()) { |
|
47 | 1 | $translations = $this->config->getPathMappingTranslations(); |
|
48 | 1 | return new PathTranslationParser($parser, $translations); |
|
49 | } |
||
50 | |||
51 | 1 | return $parser; |
|
52 | } |
||
53 | } |
||
54 |