Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
20 | 48 | public function source(string $locale = null, string $filename = null): string |
|
21 | { |
||
22 | 48 | $locale = $this->getPathForEnglish($locale); |
|
|
|||
23 | 48 | $locale = $this->clean($locale); |
|
24 | 48 | $filename = $this->clean($filename); |
|
25 | |||
26 | 48 | return $this->real( |
|
27 | 48 | Config::getVendorPath() . $locale . $filename |
|
28 | ); |
||
51 |