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