| Total Complexity | 7 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class JsUtils { |
||
| 6 | static private array $removeQuote = ["start" => "!!%", "end" => "%!!"]; |
||
| 7 | |||
| 8 | 1 | public static function cleanJSONFunctions(string $json): string { |
|
| 11 | } |
||
| 12 | |||
| 13 | 1 | public static function removeQuotes(string $body): string { |
|
| 15 | } |
||
| 16 | |||
| 17 | 1 | public static function generateFunction(string $body, array $params = [], bool $needRemoveQuote = true): string { |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | public static function declareVariable(string $type, string $name, $value, bool $lineBreak = true): string { |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public static function kebabToPascal(string $string): string { |
|
| 40 |