aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Events
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/lib/Events')
-rw-r--r--apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php6
-rw-r--r--apps/files_trashbin/lib/Events/MoveToTrashEvent.php9
2 files changed, 9 insertions, 6 deletions
diff --git a/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php b/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php
index 2aabd101d28..0bc6b37c35b 100644
--- a/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php
+++ b/apps/files_trashbin/lib/Events/BeforeNodeRestoredEvent.php
@@ -16,7 +16,11 @@ use OCP\Files\Node;
* @since 28.0.0
*/
class BeforeNodeRestoredEvent extends AbstractNodesEvent {
- public function __construct(Node $source, Node $target, private bool &$run) {
+ public function __construct(
+ Node $source,
+ Node $target,
+ private bool &$run,
+ ) {
parent::__construct($source, $target);
}
diff --git a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
index ff54c67e178..0d776b606b1 100644
--- a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
+++ b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -21,12 +22,10 @@ class MoveToTrashEvent extends Event {
/** @var bool */
private $moveToTrashBin;
- /** @var Node */
- private $node;
-
- public function __construct(Node $node) {
+ public function __construct(
+ private Node $node,
+ ) {
$this->moveToTrashBin = true;
- $this->node = $node;
}
/**