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