Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 14 | public function package(string $package): void |
|
33 | { |
||
34 | 14 | $this->log('Checking for package existence: ' . $package); |
|
35 | |||
36 | 14 | $source = $this->pathSource($package, LocalesList::ENGLISH); |
|
37 | 14 | $locales = $this->pathLocales($package); |
|
38 | |||
39 | 14 | if (Directory::doesntExist($source) || Directory::doesntExist($locales)) { |
|
40 | 2 | throw new PackageDoesntExistsException($package); |
|
41 | } |
||
44 |