Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public static function getMethods($class) |
||
17 | { |
||
18 | $path = \Yii::getAlias('@' . str_replace('\\', '/', ltrim($class, '\\'))) . '.php'; |
||
19 | $content = file_get_contents($path); |
||
20 | preg_match_all('#^[\s\w]+function\s+(.+)\s*\(#im', $content, $match); |
||
21 | return ArrayHelper::getValue($match, 1, []); |
||
22 | } |
||
55 | } |