Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function register(IRegistrationContext $context): void {

$context->registerService('userFolder', static function (ContainerInterface $c) {
$userContainer = $c->get(IServerContainer::class);
$uid = $c->get('UserId');
$uid = $c->get('userId');

return $userContainer->getUserFolder($uid);
});
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/AccountsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(
string $appName,
IRequest $request,
AccountService $accountService,
$UserId,
$userId,
LoggerInterface $logger,
IL10N $l10n,
AliasesService $aliasesService,
Expand All @@ -72,7 +72,7 @@ public function __construct(
) {
parent::__construct($appName, $request);
$this->accountService = $accountService;
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
$this->logger = $logger;
$this->l10n = $l10n;
$this->aliasesService = $aliasesService;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/AliasesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class AliasesController extends Controller {
public function __construct(string $appName,
IRequest $request,
AliasesService $aliasesService,
string $UserId) {
string $userId) {
parent::__construct($appName, $request);
$this->aliasService = $aliasesService;
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/AvatarsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class AvatarsController extends Controller {
public function __construct(string $appName,
IRequest $request,
IAvatarService $avatarService,
string $UserId) {
string $userId) {
parent::__construct($appName, $request);

$this->avatarService = $avatarService;
$this->uid = $UserId;
$this->uid = $userId;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/ContactIntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public function __construct(string $appName,
IRequest $request,
ContactIntegrationService $service,
ICacheFactory $cacheFactory,
string $UserId) {
string $userId) {
parent::__construct($appName, $request);

$this->service = $service;
$this->cache = $cacheFactory->createLocal('mail.contacts');
$this->uid = $UserId;
$this->uid = $userId;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/DraftsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ class DraftsController extends Controller {


public function __construct(string $appName,
$UserId,
$userId,
IRequest $request,
DraftsService $service,
AccountService $accountService,
ITimeFactory $timeFactory,
SmimeService $smimeService) {
parent::__construct($appName, $request);
$this->userId = $UserId;
$this->userId = $userId;
$this->service = $service;
$this->accountService = $accountService;
$this->timeFactory = $timeFactory;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/GoogleIntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class GoogleIntegrationController extends Controller {


public function __construct(IRequest $request,
?string $UserId,
?string $userId,
GoogleIntegration $googleIntegration,
AccountService $accountService,
LoggerInterface $logger,
MailboxSync $mailboxSync) {
parent::__construct(Application::APP_ID, $request);
$this->userId = $UserId;
$this->userId = $userId;
$this->googleIntegration = $googleIntegration;
$this->accountService = $accountService;
$this->logger = $logger;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/LocalAttachmentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class LocalAttachmentsController extends Controller {
* @param string $UserId
*/
public function __construct(string $appName, IRequest $request,
IAttachmentService $attachmentService, $UserId) {
IAttachmentService $attachmentService, $userId) {
parent::__construct($appName, $request);
$this->attachmentService = $attachmentService;
$this->userId = $UserId;
$this->userId = $userId;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/MailboxesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(
string $appName,
IRequest $request,
AccountService $accountService,
?string $UserId,
?string $userId,
IMailManager $mailManager,
SyncService $syncService,
private readonly IConfig $config,
Expand All @@ -52,7 +52,7 @@ public function __construct(
parent::__construct($appName, $request);

$this->accountService = $accountService;
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
$this->mailManager = $mailManager;
$this->syncService = $syncService;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/MessagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct(
IMailManager $mailManager,
IMailSearch $mailSearch,
ItineraryService $itineraryService,
?string $UserId,
?string $userId,
$userFolder,
LoggerInterface $logger,
IL10N $l10n,
Expand All @@ -105,7 +105,7 @@ public function __construct(
$this->mailManager = $mailManager;
$this->mailSearch = $mailSearch;
$this->itineraryService = $itineraryService;
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
$this->userFolder = $userFolder;
$this->logger = $logger;
$this->l10n = $l10n;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/MicrosoftIntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class MicrosoftIntegrationController extends Controller {
private LoggerInterface $logger;

public function __construct(IRequest $request,
?string $UserId,
?string $userId,
AccountService $accountService,
MicrosoftIntegration $microsoftIntegration,
LoggerInterface $logger) {
parent::__construct(Application::APP_ID, $request);
$this->userId = $UserId;
$this->userId = $userId;
$this->accountService = $accountService;
$this->microsoftIntegration = $microsoftIntegration;
$this->logger = $logger;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/OutboxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class OutboxController extends Controller {
private SmimeService $smimeService;

public function __construct(string $appName,
$UserId,
$userId,
IRequest $request,
OutboxService $service,
AccountService $accountService,
SmimeService $smimeService) {
parent::__construct($appName, $request);
$this->userId = $UserId;
$this->userId = $userId;
$this->service = $service;
$this->accountService = $accountService;
$this->smimeService = $smimeService;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct(
IConfig $config,
AccountService $accountService,
AliasesService $aliasesService,
?string $UserId,
?string $userId,
IUserSession $userSession,
IUserPreferences $preferences,
IMailManager $mailManager,
Expand All @@ -109,7 +109,7 @@ public function __construct(
$this->config = $config;
$this->accountService = $accountService;
$this->aliasesService = $aliasesService;
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
$this->userSession = $userSession;
$this->preferences = $preferences;
$this->mailManager = $mailManager;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/PreferencesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class PreferencesController extends Controller {
* @param IUserPreferences $userPreference
* @param string $UserId
*/
public function __construct(IRequest $request, IUserPreferences $userPreference, string $UserId) {
public function __construct(IRequest $request, IUserPreferences $userPreference, string $userId) {
parent::__construct('mail', $request);

$this->userPreference = $userPreference;
$this->userId = $UserId;
$this->userId = $userId;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/SieveController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SieveController extends Controller {

public function __construct(
IRequest $request,
string $UserId,
string $userId,
MailAccountMapper $mailAccountMapper,
SieveClientFactory $sieveClientFactory,
ICrypto $crypto,
Expand All @@ -48,7 +48,7 @@ public function __construct(
private SieveService $sieveService,
) {
parent::__construct(Application::APP_ID, $request);
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
$this->mailAccountMapper = $mailAccountMapper;
$this->sieveClientFactory = $sieveClientFactory;
$this->crypto = $crypto;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/TagsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ class TagsController extends Controller {


public function __construct(IRequest $request,
string $UserId,
string $userId,
IMailManager $mailManager,
AccountService $accountService,
) {
parent::__construct(Application::APP_ID, $request);
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
$this->mailManager = $mailManager;
$this->accountService = $accountService;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/ThreadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ class ThreadController extends Controller {

public function __construct(string $appName,
IRequest $request,
string $UserId,
string $userId,
AccountService $accountService,
IMailManager $mailManager,
SnoozeService $snoozeService,
AiIntegrationsService $aiIntergrationsService,
LoggerInterface $logger) {
parent::__construct($appName, $request);
$this->currentUserId = $UserId;
$this->currentUserId = $userId;
$this->accountService = $accountService;
$this->mailManager = $mailManager;
$this->snoozeService = $snoozeService;
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/TrustedSendersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class TrustedSendersController extends Controller {
private ITrustedSenderService $trustedSenderService;

public function __construct(IRequest $request,
?string $UserId,
?string $userId,
ITrustedSenderService $trustedSenderService) {
parent::__construct(Application::APP_ID, $request);

$this->uid = $UserId;
$this->uid = $userId;
$this->trustedSenderService = $trustedSenderService;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Controller/SieveControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function setUp(): void {
SieveController::class,
[
'hostValidator' => $this->remoteHostValidator,
'UserId' => '1',
'userId' => '1',
]
);
$this->sieveController = $this->serviceMock->getService();
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Controller/TagsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function setUp(): void {
parent::setUp();
$this->serviceMock = $this->createServiceMock(
TagsController::class,
['UserId' => '1']
['userId' => '1']
);
$this->mailManager = $this->serviceMock->getParameter('mailManager');
$this->tagsController = $this->serviceMock->getService();
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Controller/TrustedSendersControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class TrustedSendersControllerTest extends TestCase {
public function testSetTrustedNullUser(): void {
$serviceMock = $this->createServiceMock(TrustedSendersController::class, [
'UserId' => null,
'userId' => null,
]);

$response = $serviceMock->getService()->setTrusted('sender@example.com', 'individual');
Expand All @@ -26,7 +26,7 @@ public function testSetTrustedNullUser(): void {

public function testRemoveTrustNullUser(): void {
$serviceMock = $this->createServiceMock(TrustedSendersController::class, [
'UserId' => null,
'userId' => null,
]);

$response = $serviceMock->getService()->removeTrust('sender@example.com', 'individual');
Expand All @@ -36,7 +36,7 @@ public function testRemoveTrustNullUser(): void {

public function testListNullUser(): void {
$serviceMock = $this->createServiceMock(TrustedSendersController::class, [
'UserId' => null,
'userId' => null,
]);

$response = $serviceMock->getService()->list();
Expand Down
Loading