Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public static function fromString($string, Translations $translations, array $options = []) |
||
18 | { |
||
19 | if (empty($options['facade'])) { |
||
20 | $cachePath = empty($options['cachePath']) ? sys_get_temp_dir() : $options['cachePath']; |
||
21 | $bladeCompiler = new BladeCompiler(new Filesystem(), $cachePath); |
||
22 | $string = $bladeCompiler->compileString($string); |
||
23 | } else { |
||
24 | $string = $options['facade']::compileString($string); |
||
25 | } |
||
26 | |||
27 | PhpCode::fromString($string, $translations, $options); |
||
28 | } |
||
29 | } |
||
30 |