aboutsummaryrefslogtreecommitdiffstats
path: root/build/gen-coverage-badge.php
diff options
context:
space:
mode:
Diffstat (limited to 'build/gen-coverage-badge.php')
-rw-r--r--build/gen-coverage-badge.php25
1 files changed, 6 insertions, 19 deletions
diff --git a/build/gen-coverage-badge.php b/build/gen-coverage-badge.php
index 0164951fc1c..602ab83b281 100644
--- a/build/gen-coverage-badge.php
+++ b/build/gen-coverage-badge.php
@@ -1,26 +1,13 @@
<?php
+
/**
- * @author Thomas Müller <thomas.mueller@tmit.eu>
- *
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * 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
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
*/
if (!isset($argv[1])) {
- echo "Clover file is missing" . PHP_EOL;
+ echo 'Clover file is missing' . PHP_EOL;
exit;
}
@@ -54,6 +41,6 @@ try {
file_put_contents('coverage.svg', $content);
} catch (Exception $ex) {
echo $ex->getMessage() . PHP_EOL;
- $content = file_get_contents("https://img.shields.io/badge/coverage-ERROR-red.svg");
+ $content = file_get_contents('https://img.shields.io/badge/coverage-ERROR-red.svg');
file_put_contents('coverage.svg', $content);
}