| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public static function getLoadedViews(\ReflectionMethod $r,$lines){ |
||
| 14 | $matches=[]; |
||
| 15 | $code=self::getMethodCode($r,$lines); |
||
| 16 | \preg_match_all('@(?:.*?)\$this\-\>loadView\([\'\"](.+?)[\'\"](?:.*?)@s', $code,$matches); |
||
| 17 | if (isset($matches[1])) { |
||
| 18 | return $matches[1]; |
||
| 19 | } |
||
| 20 | return []; |
||
| 21 | } |
||
| 22 | |||
| 65 |