From b878a1409d51de49f65160f808193f4a6d4fe024 Mon Sep 17 00:00:00 2001 From: zak39 Date: Wed, 13 Nov 2024 15:39:56 +0100 Subject: [PATCH] style: composer run cs:fix --- lib/Helper/GroupfolderHelper.php | 4 ++-- lib/Space/SpaceManager.php | 4 ++-- tests/Unit/Service/UserServiceTest.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Helper/GroupfolderHelper.php b/lib/Helper/GroupfolderHelper.php index df6f330d0..0bf1b22a5 100644 --- a/lib/Helper/GroupfolderHelper.php +++ b/lib/Helper/GroupfolderHelper.php @@ -117,8 +117,8 @@ public function removeFolder(int $folderId): void { $this->folderManager->removeFolder($folderId); } catch (\Exception $e) { throw new GroupFolderFunctionException($e->getMessage() . 'Impossible to use the removeFolder from FolderManager.'); - } - } + } + } public function renameFolder(int $folderId, string $newMountPoint):void { try { diff --git a/lib/Space/SpaceManager.php b/lib/Space/SpaceManager.php index 20a14fdc6..53dd7edbf 100644 --- a/lib/Space/SpaceManager.php +++ b/lib/Space/SpaceManager.php @@ -208,7 +208,7 @@ public function remove(string $spaceId): void { $folderId = $space['groupfolder_id']; $this->folderHelper->removeFolder($folderId); - } + } /** * @param int $spaceId related to the id of a space. @@ -217,7 +217,7 @@ public function remove(string $spaceId): void { public function rename(int $spaceId, string $newSpaceName): void { $space = $this->get($spaceId); - if ($this->workspaceCheck->isExist($newSpaceName)) { + if ($this->workspaceCheck->isExist($newSpaceName)) { throw new WorkspaceNameExistException( title: 'Error - Duplicate space name', message: "This space or groupfolder already exist. Please, input another space.\nIf \"toto\" space exist, you cannot create the \"tOTo\" space.\nMake sure you the groupfolder doesn't exist." diff --git a/tests/Unit/Service/UserServiceTest.php b/tests/Unit/Service/UserServiceTest.php index 6f3ec85b0..a3a665df3 100644 --- a/tests/Unit/Service/UserServiceTest.php +++ b/tests/Unit/Service/UserServiceTest.php @@ -33,9 +33,9 @@ use OCP\IURLGenerator; use OCP\IUser; use OCP\IUserSession; +use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; -use PHPUnit\Framework\MockObject\MockObject; class UserServiceTest extends TestCase { private MockObject&IGroupManager $groupManager;