We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98de82 commit b64c6d6Copy full SHA for b64c6d6
build/license.php
@@ -228,9 +228,10 @@ private function eatOldLicense($source) {
228
229
private function getCopyrightNotices($path, $file) {
230
$licenseHeaderEndsAtLine = (int)trim(shell_exec("grep -n '*/' $path | head -n 1 | cut -d ':' -f 1"));
231
- $lineByLine = explode(PHP_EOL, $file, $licenseHeaderEndsAtLine);
+ $lineByLine = explode(PHP_EOL, $file, $licenseHeaderEndsAtLine + 1);
232
$copyrightNotice = [];
233
- foreach ($lineByLine as $line) {
+ $licensePart = array_slice($lineByLine, 0, $licenseHeaderEndsAtLine);
234
+ foreach ($licensePart as $line) {
235
if (strpos($line, '@copyright') !== false) {
236
$copyrightNotice[] = $line;
237
}
0 commit comments