aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-09-07 18:03:34 +0200
committerLukas Reschke <lukas@statuscode.ch>2021-09-07 18:03:34 +0200
commit471167019c7c9071fa815b2c92691f65370a43b9 (patch)
treeb93f6d0bf13814303df04cba5f73e2f566200c4e /lib
parenta915372c56724815e3e0a63c8c77e60e7170b325 (diff)
downloadnextcloud-server-471167019c7c9071fa815b2c92691f65370a43b9.tar.gz
nextcloud-server-471167019c7c9071fa815b2c92691f65370a43b9.zip
Implement PR review feedback
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Security/RateLimiting/Backend/DatabaseBackend.php5
-rw-r--r--lib/private/Security/RateLimiting/Backend/IBackend.php2
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php b/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
index 3b7382d747e..2ba6dc73c47 100644
--- a/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
+++ b/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
@@ -29,11 +29,6 @@ use OCP\AppFramework\Utility\ITimeFactory;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
-/**
- * Class DatabaseBackend uses the database for storing rate limiting data.
- *
- * @package OC\Security\RateLimiting\Backend
- */
class DatabaseBackend implements IBackend {
private const TABLE_NAME = 'ratelimit_entries';
diff --git a/lib/private/Security/RateLimiting/Backend/IBackend.php b/lib/private/Security/RateLimiting/Backend/IBackend.php
index 835a97993da..960bfd2d159 100644
--- a/lib/private/Security/RateLimiting/Backend/IBackend.php
+++ b/lib/private/Security/RateLimiting/Backend/IBackend.php
@@ -35,7 +35,7 @@ namespace OC\Security\RateLimiting\Backend;
*/
interface IBackend {
/**
- * Gets the amount of attempts for the specified method
+ * Gets the number of attempts for the specified method
*
* @param string $methodIdentifier Identifier for the method
* @param string $userIdentifier Identifier for the user