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