Skip to content

Commit

Permalink
chore(cs): Apply autofixes
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Aug 26, 2024
1 parent b9dbeac commit 08c9e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/CheckQuota.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected function shouldIssueWarning(string $userId, string $level): bool {
return true;
}

$days = (int) $this->config->getAppValue('quota_warning', 'repeat_warning', '7');
$days = (int)$this->config->getAppValue('quota_warning', 'repeat_warning', '7');

if ($days <= 0) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function prepare(INotification $notification, string $languageCode): INot
$l = $this->l10nFactory->get(Application::APP_ID, $languageCode);

$parameters = $notification->getSubjectParameters();
$usage = (int) round($parameters['usage']);
$usage = (int)round($parameters['usage']);
$usage = min(100, $usage);
$notification->setParsedSubject(
$l->t('You are using more than %d%% of your storage quota', [$usage])
Expand Down

0 comments on commit 08c9e14

Please sign in to comment.