public function getLicense()
{
if ($license = $this->sxe->xpath("/pecl:package/pecl:license")) {
if ($file = $this->findLicense($this->getBaseDir(), $license[0]["filesource"])) {
return $this->readLicense($file);
}
}
if ($file = $this->findLicense($this->getBaseDir())) {
return $this->readLicense($file);
}
if ($license) {
return $license[0] . " " . $license[0]["uri"];
}
return "UNKNOWN";
}