From b9dbeac86f16b13093c611f2514a81f80e2633db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 24 Aug 2024 02:05:19 +0000 Subject: [PATCH 1/2] chore(deps-dev): Bump nextcloud/coding-standard from 1.2.1 to 1.2.3 Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.2.1 to 1.2.3. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.2.1...v1.2.3) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- composer.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.lock b/composer.lock index 1355c94..87aa837 100644 --- a/composer.lock +++ b/composer.lock @@ -138,16 +138,16 @@ }, { "name": "nextcloud/coding-standard", - "version": "v1.2.1", + "version": "v1.2.3", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e" + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/bc9c53a5306114b60c4363057aff9c2ed10a54da", + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da", "shasum": "" }, "require": { @@ -173,9 +173,9 @@ "description": "Nextcloud coding standards for the php cs fixer", "support": { "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.1" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.3" }, - "time": "2024-02-01T14:54:37+00:00" + "time": "2024-08-23T14:32:32+00:00" }, { "name": "nextcloud/ocp", @@ -399,16 +399,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.52.1", + "version": "v3.62.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "baec5a6d4b24bad4c930d39fde34b2b0c1c8cd94" + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/baec5a6d4b24bad4c930d39fde34b2b0c1c8cd94", - "reference": "baec5a6d4b24bad4c930d39fde34b2b0c1c8cd94", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/7a91d5ce45c486f5b445d95901228507a02f60ae", + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae", "shasum": "" }, "require": { @@ -445,9 +445,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.52.1" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.62.0" }, - "time": "2024-03-19T21:03:12+00:00" + "time": "2024-08-07T17:03:46+00:00" }, { "name": "phpunit/php-code-coverage", From 08c9e145425e1e98895fa740afc43ba50da7d79d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 26 Aug 2024 06:56:29 +0200 Subject: [PATCH 2/2] chore(cs): Apply autofixes Signed-off-by: Joas Schilling --- lib/CheckQuota.php | 2 +- lib/Notification/Notifier.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CheckQuota.php b/lib/CheckQuota.php index e72446b..e6fc108 100644 --- a/lib/CheckQuota.php +++ b/lib/CheckQuota.php @@ -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; diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 3f6de44..605a87c 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -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])