aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Security/BruteforceAttempts.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Security/BruteforceAttempts.php')
-rw-r--r--core/Command/Security/BruteforceAttempts.php25
1 files changed, 4 insertions, 21 deletions
diff --git a/core/Command/Security/BruteforceAttempts.php b/core/Command/Security/BruteforceAttempts.php
index 16cd9712864..d5fa0a284fd 100644
--- a/core/Command/Security/BruteforceAttempts.php
+++ b/core/Command/Security/BruteforceAttempts.php
@@ -2,25 +2,8 @@
declare(strict_types=1);
/**
- * @copyright Copyright (c) 2023 Joas Schilling <coding@schilljs.com>
- *
- * @author Joas Schilling <coding@schilljs.com>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Core\Command\Security;
@@ -67,11 +50,11 @@ class BruteforceAttempts extends Base {
'bypass-listed' => $this->throttler->isBypassListed($ip),
'attempts' => $this->throttler->getAttempts(
$ip,
- (string) $input->getArgument('action'),
+ (string)$input->getArgument('action'),
),
'delay' => $this->throttler->getDelay(
$ip,
- (string) $input->getArgument('action'),
+ (string)$input->getArgument('action'),
),
];