| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 1 | public static function list_children(string $classname) : array |
|
| 34 | { |
||
| 35 | 1 | $cm = connection::get_em()->getClassMetadata($classname); |
|
| 36 | 1 | if (empty($cm->midgard['childtypes'])) { |
|
| 37 | 1 | return []; |
|
| 38 | } |
||
| 39 | // @todo We filter out useful information (parent field name) in the name of mgd2 compat. |
||
| 40 | 1 | return array_fill_keys(array_keys($cm->midgard['childtypes']), ''); |
|
| 41 | } |
||
| 55 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.