| 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 | 6 | return self::removeQuotes("function(".implode(",",$params)."){".$body."}"); |
|
| 19 | } |
||
| 20 | 6 | return "function(".implode(",",$params)."){".$body."}"; |
|
| 21 | } |
||
| 38 |
This check looks for imports that have been defined, but are not used in the scope.