diff --git a/lib/Helper/GroupfolderHelper.php b/lib/Helper/GroupfolderHelper.php index df6f330d..0bf1b22a 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 20a14fdc..53dd7edb 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 6f3ec85b..a3a665df 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;