Skip to content

Commit

Permalink
style: composer run cs:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Nov 13, 2024
1 parent 71bb9bc commit b878a14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Helper/GroupfolderHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/Space/SpaceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Service/UserServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b878a14

Please sign in to comment.