Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-01 16:33:41 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-11 17:03:32 +0300
commit2fb666039c29ac772f0079941318106d93d4264a (patch)
tree9ab3473483f8000cb38851373acd61c4530e54d5 /lib
parentaacc46849801d68d463c9d49e9095d6fd66dc93b (diff)
Fix CS linting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/SettingsController.php2
-rw-r--r--lib/MailNotifications.php1
-rw-r--r--lib/Migration/Version2011Date20210930134607.php3
-rw-r--r--lib/Settings/Personal.php1
4 files changed, 2 insertions, 5 deletions
diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php
index de4a905..91aa684 100644
--- a/lib/Controller/SettingsController.php
+++ b/lib/Controller/SettingsController.php
@@ -24,14 +24,12 @@ declare(strict_types=1);
namespace OCA\Notifications\Controller;
-use OCA\Notifications\MailNotifications;
use OCA\Notifications\Model\Settings;
use OCA\Notifications\Model\SettingsMapper;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\OCSController;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\IConfig;
use OCP\IRequest;
class SettingsController extends OCSController {
diff --git a/lib/MailNotifications.php b/lib/MailNotifications.php
index bfdfb45..5f5ea1e 100644
--- a/lib/MailNotifications.php
+++ b/lib/MailNotifications.php
@@ -82,7 +82,6 @@ class MailNotifications {
public const BATCH_SIZE_CLI = 500;
public const BATCH_SIZE_WEB = 25;
- public const DEFAULT_BATCH_TIME = 3600 * 24;
public function __construct(
IConfig $config,
diff --git a/lib/Migration/Version2011Date20210930134607.php b/lib/Migration/Version2011Date20210930134607.php
index 837713d..0f87c94 100644
--- a/lib/Migration/Version2011Date20210930134607.php
+++ b/lib/Migration/Version2011Date20210930134607.php
@@ -2,7 +2,6 @@
declare(strict_types=1);
-namespace OCA\Notifications\Migration;
/**
* @copyright Copyright (c) 2021 Joas Schilling <coding@schilljs.com>
*
@@ -23,6 +22,8 @@ namespace OCA\Notifications\Migration;
*
*/
+namespace OCA\Notifications\Migration;
+
use Closure;
use Doctrine\DBAL\Types\Types;
use OCP\DB\ISchemaWrapper;
diff --git a/lib/Settings/Personal.php b/lib/Settings/Personal.php
index 6f38586..b756227 100644
--- a/lib/Settings/Personal.php
+++ b/lib/Settings/Personal.php
@@ -24,7 +24,6 @@ declare(strict_types=1);
namespace OCA\Notifications\Settings;
-use OCA\Notifications\MailNotifications;
use OCA\Notifications\Model\Settings;
use OCA\Notifications\Model\SettingsMapper;
use OCP\AppFramework\Db\DoesNotExistException;