1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Doctrine::compile() refactored

This commit is contained in:
zYne 2006-08-27 19:39:05 +00:00
parent 31bfa23340
commit 82c13ca1da

View File

@ -371,21 +371,11 @@ final class Doctrine {
$refl = new ReflectionClass ( $class ); $refl = new ReflectionClass ( $class );
$lines = file( $file ); $lines = file( $file );
$start = $refl->getStartLine() - 1; $ret = array_merge($ret,
$end = $refl->getEndLine() - 2; array_slice($lines,
$refl -> getStartLine() - 1,
$refl -> getEndLine() - 2));
$i = 0;
while($i < count($lines)) {
$i++;
if($i < $start)
continue;
$ret[] = $lines[$i];
if($i > $end)
break;
}
} }