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