Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 1 | public static function getParsedJs(string $name,array $variables = []): string { |
|
25 | 1 | if(isset($variables)){ |
|
26 | 1 | foreach($variables as $key => $value){ |
|
27 | 1 | self::$parsedJs[$name] = \str_replace("{{ $key }}",$value, self::$parsedJs[$name]); |
|
28 | } |
||
29 | } |
||
30 | 1 | return self::$parsedJs[$name]; |
|
31 | } |
||
34 |