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