Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
4 | class JsUtils{ |
||
5 | static private array $removeQuote = ["start"=>"!!%","end"=>"%!!"]; |
||
6 | |||
7 | 3 | public static function cleanJSONFunctions(string $json):string { |
|
10 | } |
||
11 | |||
12 | 10 | public static function removeQuotes(string $body):string{ |
|
14 | } |
||
15 | |||
16 | 11 | public static function generateFunction(string $body, array $params = [], bool $needRemoveQuote = true):string { |
|
21 | } |
||
22 | |||
23 | public static function declareVariable(string $type, string $name, $value):string { |
||
25 | } |
||
26 | |||
27 | public static function kebabToPascal(string $string){ |
||
38 |
This check looks for imports that have been defined, but are not used in the scope.