]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore: Use SPDX headers and property promotion in new files
authorCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 23 Sep 2024 14:32:54 +0000 (16:32 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 23 Sep 2024 16:13:29 +0000 (18:13 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/files_trashbin/lib/Listener/EventListener.php
lib/public/Files/Events/BeforeFileSystemSetupEvent.php

index 882f963103fbd9338db812c307c6bd2907581b2c..7568524e853a6c62a4ed1d2b498dfd952680d2cc 100644 (file)
@@ -3,26 +3,10 @@
 declare(strict_types=1);
 
 /**
- * @copyright 2022 Carl Schwan <carl@carlschwan.eu>
- *
- * @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: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
  */
 
-
 namespace OCA\Files_Trashbin\Listener;
 
 use OCA\Files_Trashbin\Storage;
index 030c3ded834953f16ea1e88b9f0e8bef8acad568..23791aa6ec107fdaabc5721e8630e52977034bc6 100644 (file)
@@ -3,23 +3,8 @@
 declare(strict_types=1);
 
 /**
- * @copyright 2022 Carl Schwan <carl@carlschwan.eu>
- *
- * @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: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
  */
 
 namespace OCP\Files\Events;
@@ -30,21 +15,20 @@ use OCP\IUser;
 /**
  * Event triggered before the file system is setup
  *
- * @since 27.0.0
+ * @since 31.0.0
  */
 class BeforeFileSystemSetupEvent extends Event {
-       private IUser $user;
-
        /**
-        * @since 27.0.0
+        * @since 31.0.0
         */
-       public function __construct(IUser $user) {
+       public function __construct(
+               private IUser $user,
+       ) {
                parent::__construct();
-               $this->user = $user;
        }
 
        /**
-        * @since 27.0.0
+        * @since 31.0.0
         */
        public function getUser(): IUser {
                return $this->user;