CodeExplorer collectLineage example
$file =
$r->
getFileName();
if (str_ends_with($file, ') : eval()\'d code'
)) { $file =
substr($file, 0,
strrpos($file, '(', -17
));
} if (!
$file ||
$this->
doExport($file) ===
$exportedFile =
$this->
export($file)) { return;
} $lineage[$class] =
substr($exportedFile, 1, -1
);
if ($parent =
$r->
getParentClass()) { $this->
collectLineage($parent->name,
$lineage);
} foreach ($r->
getInterfaces() as $parent) { $this->
collectLineage($parent->name,
$lineage);
} foreach ($r->
getTraits() as $parent) { $this->
collectLineage($parent->name,
$lineage);
} unset($lineage[$class]);
$file =
$r->
getFileName();
if (str_ends_with($file, ') : eval()\'d code'
)) { $file =
substr($file, 0,
strrpos($file, '(', -17
));
} if (!
$file ||
$this->
doExport($file) ===
$exportedFile =
$this->
export($file)) { return;
} $lineage[$class] =
substr($exportedFile, 1, -1
);
if ($parent =
$r->
getParentClass()) { $this->
collectLineage($parent->name,
$lineage);
} foreach ($r->
getInterfaces() as $parent) { $this->
collectLineage($parent->name,
$lineage);
} foreach ($r->
getTraits() as $parent) { $this->
collectLineage($parent->name,
$lineage);
} unset($lineage[$class]);
$file =
$r->
getFileName();
if (str_ends_with($file, ') : eval()\'d code'
)) { $file =
substr($file, 0,
strrpos($file, '(', -17
));
} if (!
$file ||
$this->
doExport($file) ===
$exportedFile =
$this->
export($file)) { return;
} $lineage[$class] =
substr($exportedFile, 1, -1
);
if ($parent =
$r->
getParentClass()) { $this->
collectLineage($parent->name,
$lineage);
} foreach ($r->
getInterfaces() as $parent) { $this->
collectLineage($parent->name,
$lineage);
} foreach ($r->
getTraits() as $parent) { $this->
collectLineage($parent->name,
$lineage);
} unset($lineage[$class]);