aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-09-05 21:23:38 +0200
committerAnna Larch <anna@nextcloud.com>2024-09-05 21:23:38 +0200
commit8af7ecb2576071f170ecbb0aa2311b26581e40e2 (patch)
tree9a8f3595cb28493368f78b0a049254d0a256b3c1 /apps/files_trashbin/lib
parent4566cf791d55f1202f4a1888b9cd23a7be0ed2c9 (diff)
downloadnextcloud-server-8af7ecb2576071f170ecbb0aa2311b26581e40e2.tar.gz
nextcloud-server-8af7ecb2576071f170ecbb0aa2311b26581e40e2.zip
chore: adjust code to adhere to coding standard
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/Command/RestoreAllFiles.php2
-rw-r--r--apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Command/RestoreAllFiles.php b/apps/files_trashbin/lib/Command/RestoreAllFiles.php
index cd86ede93cb..969791379c1 100644
--- a/apps/files_trashbin/lib/Command/RestoreAllFiles.php
+++ b/apps/files_trashbin/lib/Command/RestoreAllFiles.php
@@ -173,7 +173,7 @@ class RestoreAllFiles extends Base {
$prepMsg = $dryRun ? 'Would restore' : 'Preparing to restore';
$output->writeln("$prepMsg <info>$trashCount</info> files...");
$count = 0;
- foreach($userTrashItems as $trashItem) {
+ foreach ($userTrashItems as $trashItem) {
$filename = $trashItem->getName();
$humanTime = $this->l10n->l('datetime', $trashItem->getDeletedTime());
// We use getTitle() here instead of getOriginalLocation() because
diff --git a/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php b/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php
index 222e49e9712..db9a43be6fc 100644
--- a/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php
+++ b/apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php
@@ -112,7 +112,7 @@ class SyncLivePhotosListener implements IEventListener {
* TODO: This should be replaced by a proper method in the TrashManager.
*/
private function getTrashItem(array $trashFolder, string $path): ?ITrashItem {
- foreach($trashFolder as $trashItem) {
+ foreach ($trashFolder as $trashItem) {
if (str_starts_with($path, 'files_trashbin/files'.$trashItem->getTrashPath())) {
if ($path === 'files_trashbin/files'.$trashItem->getTrashPath()) {
return $trashItem;