| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public static function getMethodCode(\ReflectionMethod $r,$lines){ |
||
| 24 | $str=""; |
||
| 25 | $count=\sizeof($lines); |
||
| 26 | $sLine=$r->getStartLine();$eLine=$r->getEndLine(); |
||
| 27 | if($sLine==$eLine) |
||
| 28 | return $lines[$sLine]; |
||
| 29 | for($l = $sLine; $l < min($eLine,$count); $l++) { |
||
| 30 | $str .= $lines[$l]; |
||
| 31 | } |
||
| 32 | return $str; |
||
| 33 | } |
||
| 34 | |||
| 65 |