| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 91.67% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class JsUtils { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Returns a JSON string from an object. |
||
| 17 | * |
||
| 18 | * @param mixed $object |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | 1 | public static function objectToJSON($object): string { |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Add script tags to a javascript code. |
||
| 34 | * |
||
| 35 | * @param string $script |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 1 | public static function wrapScript(string $script): string { |
|
| 49 |