Conditions | 2 |
Paths | 2 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | 10 | public static function generateFunction(string $body, array $params = [], bool $needRemoveQuote = true):string { |
|
17 | 10 | if($needRemoveQuote){ |
|
18 | 7 | return self::removeQuotes("function(".implode(",",$params)."){".$body."}"); |
|
19 | } |
||
20 | 5 | return "function(".implode(",",$params)."){".$body."}"; |
|
21 | } |
||
24 |