If there is no copyright notice print comment line
This commit is contained in:
parent
08a71b176f
commit
b5f61ba0e2
|
@ -154,7 +154,12 @@ With help from many libraries and frameworks including:
|
||||||
} else {
|
} else {
|
||||||
$license = str_replace('@AUTHORS@', $authors, $this->licenseText);
|
$license = str_replace('@AUTHORS@', $authors, $this->licenseText);
|
||||||
}
|
}
|
||||||
$license = str_replace('@COPYRIGHT@', $copyrightNotices, $license);
|
|
||||||
|
if ($copyrightNotices === '') {
|
||||||
|
$license = str_replace('@COPYRIGHT@', ' *', $license);
|
||||||
|
} else {
|
||||||
|
$license = str_replace('@COPYRIGHT@', $copyrightNotices, $license);
|
||||||
|
}
|
||||||
|
|
||||||
$source = $this->eatOldLicense($source);
|
$source = $this->eatOldLicense($source);
|
||||||
$source = "<?php" . PHP_EOL . $license . PHP_EOL . $source;
|
$source = "<?php" . PHP_EOL . $license . PHP_EOL . $source;
|
||||||
|
|
Loading…
Reference in New Issue