Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 22:52:51 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 23:02:41 +0300
commit215aef3cbdc1963be1bb6bca5218ee0a4b7f1665 (patch)
tree0f0fdee6bef8d5f2a6ae5f83c8b4b06ddc090a1b /build/license.php
parent46dbc8fa988176e4a431cafcbae6674fb613c899 (diff)
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'build/license.php')
-rw-r--r--build/license.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/license.php b/build/license.php
index 49fba751d0b..081242d5994 100644
--- a/build/license.php
+++ b/build/license.php
@@ -41,7 +41,7 @@ class Licenses {
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
@@ -111,7 +111,7 @@ EOD;
return true;
});
$iterator = new RecursiveIteratorIterator($iterator);
- $iterator = new RegexIterator($iterator, '/^.+\.(js)$/i');
+ $iterator = new RegexIterator($iterator, '/^.+\.(js|php)$/i');
foreach ($iterator as $file) {
/** @var SplFileInfo $file */
@@ -218,7 +218,7 @@ With help from many libraries and frameworks including:
$isStrict = false;
$index = 0;
- while (!empty($lines)) {
+ while (!empty($lines) && array_key_exists($index, $lines)) {
$line = $lines[$index];
if (trim($line) === '<?php') {