function SpdxLicenses::getLicensesExpression
Return value
string
1 call to SpdxLicenses::getLicensesExpression()
- SpdxLicenses::isValidLicenseString in vendor/
composer/ spdx-licenses/ src/ SpdxLicenses.php
File
-
vendor/
composer/ spdx-licenses/ src/ SpdxLicenses.php, line 262
Class
Namespace
Composer\SpdxCode
private function getLicensesExpression() {
if (null === $this->licensesExpression) {
$licenses = array_map('preg_quote', array_keys($this->licenses));
rsort($licenses);
$licenses = implode('|', $licenses);
$this->licensesExpression = $licenses;
}
return $this->licensesExpression;
}