aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php')
-rw-r--r--apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php35
1 files changed, 7 insertions, 28 deletions
diff --git a/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php b/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php
index 66567b397f2..2812df6ad6a 100644
--- a/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php
+++ b/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php
@@ -1,26 +1,8 @@
<?php
+
/**
- * @copyright Copyright (c) 2017 Robin Appelman <robin@icewind.nl>
- *
- * @author Christoph Wurst <christoph@winzerhof-wurst.at>
- * @author Julius Härtl <jus@bitgrid.net>
- * @author Robin Appelman <robin@icewind.nl>
- *
- * @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: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Files_External\Lib\Notify;
@@ -31,11 +13,6 @@ use OCP\Files\Notify\INotifyHandler;
class SMBNotifyHandler implements INotifyHandler {
/**
- * @var \Icewind\SMB\INotifyHandler
- */
- private $shareNotifyHandler;
-
- /**
* @var string
*/
private $root;
@@ -48,8 +25,10 @@ class SMBNotifyHandler implements INotifyHandler {
* @param \Icewind\SMB\INotifyHandler $shareNotifyHandler
* @param string $root
*/
- public function __construct(\Icewind\SMB\INotifyHandler $shareNotifyHandler, $root) {
- $this->shareNotifyHandler = $shareNotifyHandler;
+ public function __construct(
+ private \Icewind\SMB\INotifyHandler $shareNotifyHandler,
+ $root,
+ ) {
$this->root = str_replace('\\', '/', $root);
}