Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
24 | public function resolve(array $templateList, $repositoryType, $repositorySubType) |
||
25 | { |
||
26 | // Override base namespace for specific files |
||
27 | if (RepositoryType::LIBRARY === $repositoryType) { |
||
28 | $namespace = self::LIBRARY_NAMESPACE; |
||
29 | |||
30 | $templateList['composer.config']->setNamespace($namespace); |
||
31 | $templateList['git.gitignore']->setNamespace($namespace); |
||
32 | $templateList['git.readme']->setNamespace($namespace); |
||
33 | |||
34 | // Override with sub type |
||
35 | if (RepositorySubType::SYMFONY === $repositorySubType) { |
||
36 | $subNamespace = self::SYMFONY_LIBRARY_NAMESPACE; |
||
37 | $templateList['ci.travis']->setNamespace($subNamespace); |
||
38 | $templateList['git.readme']->setNamespace($subNamespace); |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 | } |
||
43 |