Skip to content

Commit

Permalink
Merge pull request #3681 from nextcloud/dep/next/updates
Browse files Browse the repository at this point in the history
Dep/next/updates
  • Loading branch information
dartcafe authored Aug 31, 2024
2 parents c5e6560 + df84ac4 commit 5754fef
Show file tree
Hide file tree
Showing 32 changed files with 756 additions and 776 deletions.
98 changes: 49 additions & 49 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions lib/Command/Share/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

/**
* @param Poll $poll
* @param Poll $poll
* @param string[] $userIds
* @psalm-suppress UnusedMethod
*/
Expand All @@ -95,7 +95,7 @@ private function inviteUsers(Poll $poll, array $userIds): void {
}

/**
* @param Poll $poll
* @param Poll $poll
* @param string[] $groupIds
* @psalm-suppress UnusedMethod
*/
Expand All @@ -111,7 +111,7 @@ private function inviteGroups(Poll $poll, array $groupIds): void {
}

/**
* @param Poll $poll
* @param Poll $poll
* @param string[] $emails
* @psalm-suppress UnusedMethod
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/Command/Share/Remove.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

/**
* @param Poll $poll
* @param Poll $poll
* @param string[] $userIds
* @psalm-suppress UnusedMethod
*/
Expand All @@ -93,7 +93,7 @@ private function removeUsers(Poll $poll, array $userIds): void {
}

/**
* @param Poll $poll
* @param Poll $poll
* @param string[] $groupIds
* @psalm-suppress UnusedMethod
*/
Expand All @@ -106,7 +106,7 @@ private function removeGroups(Poll $poll, array $groupIds): void {
}

/**
* @param Poll $poll
* @param Poll $poll
* @param string[] $emails
* @psalm-suppress UnusedMethod
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/EntityWithUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getAnonymizeLevel(): string {
}

// Anonymize if poll's anonymize setting is true
if ((bool) $this->anonymized) {
if ((bool)$this->anonymized) {
return self::ANON_FULL;
}

Expand Down
8 changes: 4 additions & 4 deletions lib/Db/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private function getVotes(): array {
];
}

public function getOwnerUser(): UserBase | null {
public function getOwnerUser(): UserBase|null {
if ($this->getOwner() === '') {
return null;
}
Expand Down Expand Up @@ -279,7 +279,7 @@ public function getDateStringLocalized(DateTimeZone $timeZone, IL10N $l10n): str

// If duration is zero, the option represents a moment with day and time
if ($this->getDuration() === 0) {
return (string) $l10n->l('datetime', $mutableFrom);
return (string)$l10n->l('datetime', $mutableFrom);
}

$dateTimeFrom = $l10n->l('datetime', $mutableFrom);
Expand All @@ -293,15 +293,15 @@ public function getDateStringLocalized(DateTimeZone $timeZone, IL10N $l10n): str
$dateTimeTo = $l10n->l('date', $mutableTo->sub($dayLongSecond));
// if start and end day are identiacal, just return the start day
if ($dateTimeFrom === $dateTimeTo) {
return (string) $dateTimeFrom;
return (string)$dateTimeFrom;
}
}

if ($sameDay) {
$dateTimeTo = $l10n->l('time', $mutableTo);
}

return (string) $dateTimeFrom . ' - ' . (string) $dateTimeTo;
return (string)$dateTimeFrom . ' - ' . (string)$dateTimeTo;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/OptionMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function purgeDeletedOptions(int $offset): void {
/**
* Build the enhanced query with joined tables
* @param bool $hideResults Whether poll results are defined as beeing hidden
* injects the poll permission allowdSeeResults into the query
* injects the poll permission allowdSeeResults into the query
*/
protected function buildQuery(bool $hideResults = false): IQueryBuilder {
$currentUserId = $this->userSession->getCurrentUserId();
Expand Down
Loading

0 comments on commit 5754fef

Please sign in to comment.