From 8af7ecb2576071f170ecbb0aa2311b26581e40e2 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Thu, 5 Sep 2024 21:23:38 +0200 Subject: chore: adjust code to adhere to coding standard Signed-off-by: Anna Larch --- apps/files_trashbin/lib/Command/RestoreAllFiles.php | 2 +- apps/files_trashbin/lib/Listeners/SyncLivePhotosListener.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_trashbin/lib') 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 $trashCount 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; -- cgit v1.2.3