aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/build.xml4
-rw-r--r--build/integration/features/bootstrap/SetupContext.php21
-rw-r--r--build/psalm-baseline-ocp.xml4
-rw-r--r--build/psalm-baseline.xml4
-rw-r--r--build/psalm/AppFrameworkTainter.php23
-rw-r--r--build/psalm/OcpSinceChecker.php20
-rw-r--r--build/stubs/IntlChar.php5
-rw-r--r--build/stubs/SensitiveParameter.phpstub4
-rw-r--r--build/stubs/apcu.php5
-rw-r--r--build/stubs/app_api.php4
-rw-r--r--build/stubs/ftp.php5
-rw-r--r--build/stubs/gd.php5
-rw-r--r--build/stubs/imagick.php5
-rw-r--r--build/stubs/intl.php5
-rw-r--r--build/stubs/ldap.php5
-rw-r--r--build/stubs/memcached.php5
-rw-r--r--build/stubs/pcntl.php6
-rw-r--r--build/stubs/psr_container.php5
-rw-r--r--build/stubs/redis.php5
-rw-r--r--build/stubs/redis_cluster.php5
-rw-r--r--build/stubs/sftp.php5
-rw-r--r--build/stubs/ssh2.php5
-rw-r--r--build/stubs/xsl.php5
-rw-r--r--build/stubs/zip.php6
24 files changed, 90 insertions, 76 deletions
diff --git a/build/build.xml b/build/build.xml
index c8c5c4efffc..a44eca134d5 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - SPDX-FileCopyrightText: 2014 ownCloud, Inc.
+ - SPDX-License-Identifier: AGPL-3.0-or-later
+-->
<project name="ownCloud" default="build">
<!-- the target 'build' can be used by developers for command line builds -->
diff --git a/build/integration/features/bootstrap/SetupContext.php b/build/integration/features/bootstrap/SetupContext.php
index 5abdb22ccfc..96cb00d8601 100644
--- a/build/integration/features/bootstrap/SetupContext.php
+++ b/build/integration/features/bootstrap/SetupContext.php
@@ -1,24 +1,7 @@
<?php
/**
- * @copyright Morris Jobke
- *
- * @author Morris Jobke <hey@morrisjobke.de>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * 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
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
+ * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
use Behat\Behat\Context\Context;
diff --git a/build/psalm-baseline-ocp.xml b/build/psalm-baseline-ocp.xml
index e48e5919468..eab5257a333 100644
--- a/build/psalm-baseline-ocp.xml
+++ b/build/psalm-baseline-ocp.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ - SPDX-License-Identifier: AGPL-3.0-or-later
+-->
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="lib/private/legacy/OC_Template.php">
<UndefinedClass>
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 3897f5aa176..652c076928e 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ - SPDX-License-Identifier: AGPL-3.0-or-later
+-->
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
<MoreSpecificImplementedParamType>
diff --git a/build/psalm/AppFrameworkTainter.php b/build/psalm/AppFrameworkTainter.php
index 9a68885b175..6119b843c83 100644
--- a/build/psalm/AppFrameworkTainter.php
+++ b/build/psalm/AppFrameworkTainter.php
@@ -1,28 +1,9 @@
<?php
/**
- * Copyright (c) 2020 Lukas Reschke <lukas@statuscode.ch>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * SPDX-FileCopyrightText: 2020 Lukas Reschke <lukas@statuscode.ch>
+ * SPDX-License-Identifier: MIT
*/
-
use Psalm\CodeLocation;
use Psalm\Plugin\EventHandler\AfterFunctionLikeAnalysisInterface;
use Psalm\Plugin\EventHandler\Event\AfterFunctionLikeAnalysisEvent;
diff --git a/build/psalm/OcpSinceChecker.php b/build/psalm/OcpSinceChecker.php
index 92437a8f3ab..c030678aee1 100644
--- a/build/psalm/OcpSinceChecker.php
+++ b/build/psalm/OcpSinceChecker.php
@@ -1,26 +1,10 @@
<?php
declare(strict_types=1);
-
/**
- * @copyright 2023 Daniel Kesselberg <mail@danielkesselberg.de>
- *
- * @author 2023 Daniel Kesselberg <mail@danielkesselberg.de>
- *
- * 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: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
*/
-
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\ClassLike;
use Psalm\CodeLocation;
diff --git a/build/stubs/IntlChar.php b/build/stubs/IntlChar.php
index ea9e1653bd1..5e277ec1e5f 100644
--- a/build/stubs/IntlChar.php
+++ b/build/stubs/IntlChar.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
/**
* <p>IntlChar provides access to a number of utility methods that can be used to access information about Unicode characters.</p>
* <p>The methods and constants adhere closely to the names and behavior used by the underlying ICU library.</p>
diff --git a/build/stubs/SensitiveParameter.phpstub b/build/stubs/SensitiveParameter.phpstub
index 95715138927..015ca30f412 100644
--- a/build/stubs/SensitiveParameter.phpstub
+++ b/build/stubs/SensitiveParameter.phpstub
@@ -1,5 +1,9 @@
<?php
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
#[\Attribute(Attribute::TARGET_PARAMETER)]
class SensitiveParameter {
}
diff --git a/build/stubs/apcu.php b/build/stubs/apcu.php
index ec096fb5e25..fb0dd855ac6 100644
--- a/build/stubs/apcu.php
+++ b/build/stubs/apcu.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
/**
* Stubs for APC (apcu_bc nowadays) extension
*/
diff --git a/build/stubs/app_api.php b/build/stubs/app_api.php
index 1ab63499b77..736a5b9ac6b 100644
--- a/build/stubs/app_api.php
+++ b/build/stubs/app_api.php
@@ -1,5 +1,9 @@
<?php
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
namespace OCA\AppAPI\Service;
use OCP\IRequest;
diff --git a/build/stubs/ftp.php b/build/stubs/ftp.php
index 22e97f0f44f..b273b53630b 100644
--- a/build/stubs/ftp.php
+++ b/build/stubs/ftp.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
/** @generate-class-entries */
namespace FTP {
diff --git a/build/stubs/gd.php b/build/stubs/gd.php
index 5b48af23761..2b22b05a743 100644
--- a/build/stubs/gd.php
+++ b/build/stubs/gd.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
/** @generate-class-entries */
/**
diff --git a/build/stubs/imagick.php b/build/stubs/imagick.php
index 7fe3ed8246f..33a0bfecddc 100644
--- a/build/stubs/imagick.php
+++ b/build/stubs/imagick.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
/** @generate-function-entries */
class Imagick
diff --git a/build/stubs/intl.php b/build/stubs/intl.php
index 08e0c719338..9b4c8fbc4e4 100644
--- a/build/stubs/intl.php
+++ b/build/stubs/intl.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
// Start of intl v.1.1.0
class Collator {
diff --git a/build/stubs/ldap.php b/build/stubs/ldap.php
index faa7edda3dc..ed407cb8793 100644
--- a/build/stubs/ldap.php
+++ b/build/stubs/ldap.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
/** @generate-class-entries */
namespace LDAP {
diff --git a/build/stubs/memcached.php b/build/stubs/memcached.php
index b87387aa1ef..32ec1697141 100644
--- a/build/stubs/memcached.php
+++ b/build/stubs/memcached.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
// Start of memcached v.3.1.5
/**
diff --git a/build/stubs/pcntl.php b/build/stubs/pcntl.php
index ff0bde9ed7a..357af916b26 100644
--- a/build/stubs/pcntl.php
+++ b/build/stubs/pcntl.php
@@ -1,6 +1,8 @@
<?php
-
-// Licensed under Apache-2.0
+/**
+ * SPDX-FileCopyrightText: 2022 JetBrains
+ * SPDX-License-Identifier: Apache-2.0
+ */
// Copied from https://github.com/JetBrains/phpstorm-stubs/blob/master/pcntl/pcntl.php
define('WNOHANG', 1);
diff --git a/build/stubs/psr_container.php b/build/stubs/psr_container.php
index a87584c6f3a..e8aa4c70a58 100644
--- a/build/stubs/psr_container.php
+++ b/build/stubs/psr_container.php
@@ -1,7 +1,10 @@
<?php
declare(strict_types=1);
-
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
namespace Psr\Container;
use Throwable;
diff --git a/build/stubs/redis.php b/build/stubs/redis.php
index 1a91e942fc4..3f6edb0a615 100644
--- a/build/stubs/redis.php
+++ b/build/stubs/redis.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
use JetBrains\PhpStorm\Deprecated;
/**
diff --git a/build/stubs/redis_cluster.php b/build/stubs/redis_cluster.php
index fdabba76553..027d6038959 100644
--- a/build/stubs/redis_cluster.php
+++ b/build/stubs/redis_cluster.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
/**
* Helper autocomplete for php redis cluster extension.
* Based on the phpredis-phpdoc by Max Kamashev (https://github.com/ukko/phpredis-phpdoc)
diff --git a/build/stubs/sftp.php b/build/stubs/sftp.php
index 77b9a7c93b7..9093443cf57 100644
--- a/build/stubs/sftp.php
+++ b/build/stubs/sftp.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
define('NET_SFTP_INIT', 1);
define('NET_SFTP_VERSION', 2);
define('NET_SFTP_OPEN', 3);
diff --git a/build/stubs/ssh2.php b/build/stubs/ssh2.php
index bf1a4fb87a8..0012bbce139 100644
--- a/build/stubs/ssh2.php
+++ b/build/stubs/ssh2.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
define('NET_SSH2_MSG_DISCONNECT', 1);
define('NET_SSH2_MSG_IGNORE', 2);
define('NET_SSH2_MSG_UNIMPLEMENTED', 3);
diff --git a/build/stubs/xsl.php b/build/stubs/xsl.php
index 5712636d3da..c1514c4e8ca 100644
--- a/build/stubs/xsl.php
+++ b/build/stubs/xsl.php
@@ -1,5 +1,8 @@
<?php
-
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
// Start of xsl v.0.1
/**
diff --git a/build/stubs/zip.php b/build/stubs/zip.php
index 10590aeed50..441b4cb9c80 100644
--- a/build/stubs/zip.php
+++ b/build/stubs/zip.php
@@ -1,6 +1,8 @@
<?php
-
-// Licensed under Apache-2.0
+/**
+ * SPDX-FileCopyrightText: 2022 JetBrains
+ * SPDX-License-Identifier: Apache-2.0
+ */
// Copied from https://github.com/JetBrains/phpstorm-stubs/blob/master/zip/zip.php
// Removed attributes