Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 16 | protected function files(string $package, string $locale = LocalesList::ENGLISH): array |
|
17 | { |
||
18 | 16 | $this->log('Getting a list of files for the ', $package, 'package...'); |
|
|
|||
19 | |||
20 | 16 | if ($this->files[$package] ?? false) { |
|
21 | 15 | return $this->files[$package]; |
|
22 | } |
||
23 | |||
24 | 16 | $path = $this->pathSource($package, $locale); |
|
25 | |||
26 | 16 | return $this->files[$package] = File::names($path, static function ($filename) { |
|
27 | 16 | return ! Str::contains($filename, 'inline'); |
|
28 | 16 | }); |
|
56 |