summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-06-24 11:41:56 +0200
committerJoas Schilling <coding@schilljs.com>2021-06-24 11:43:17 +0200
commitead986df53c34ab663656585a5dc9cb8a157a5c5 (patch)
tree7666cca46dda8b79982a7b251234cf44a6bb72e2
parent9307412dc83d7bb31a65b9b5809b3f7573a99372 (diff)
Optimize imports
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/BackgroundJob/CheckMatterbridges.php2
-rw-r--r--lib/MatterbridgeManager.php22
2 files changed, 11 insertions, 13 deletions
diff --git a/lib/BackgroundJob/CheckMatterbridges.php b/lib/BackgroundJob/CheckMatterbridges.php
index 4b256f064..65dfec841 100644
--- a/lib/BackgroundJob/CheckMatterbridges.php
+++ b/lib/BackgroundJob/CheckMatterbridges.php
@@ -23,9 +23,9 @@ declare(strict_types=1);
namespace OCA\Talk\BackgroundJob;
+use OCA\Talk\MatterbridgeManager;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\TimedJob;
-use OCA\Talk\MatterbridgeManager;
use OCP\IConfig;
use Psr\Log\LoggerInterface;
diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php
index 5ce231a49..a10f3ba9a 100644
--- a/lib/MatterbridgeManager.php
+++ b/lib/MatterbridgeManager.php
@@ -23,27 +23,25 @@ declare(strict_types=1);
namespace OCA\Talk;
+use OC\Authentication\Token\IProvider as IAuthTokenProvider;
+use OC\Authentication\Token\IToken;
+use OCA\Talk\Chat\ChatManager;
+use OCA\Talk\Exceptions\ImpossibleToKillException;
+use OCA\Talk\Exceptions\ParticipantNotFoundException;
use OCA\Talk\Exceptions\RoomNotFoundException;
+use OCA\Talk\Exceptions\WrongPermissionsException;
use OCA\Talk\Model\Attendee;
use OCA\Talk\Service\ParticipantService;
+use OCP\AppFramework\Utility\ITimeFactory;
use OCP\DB\Exception;
+use OCP\DB\QueryBuilder\IQueryBuilder;
+use OCP\IAvatarManager;
use OCP\IConfig;
use OCP\IDBConnection;
-use OCP\DB\QueryBuilder\IQueryBuilder;
-use OCP\IUserManager;
use OCP\IURLGenerator;
-use OC\Authentication\Token\IProvider as IAuthTokenProvider;
-use OC\Authentication\Token\IToken;
+use OCP\IUserManager;
use OCP\Security\ISecureRandom;
-use OCP\IAvatarManager;
-use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use Psr\Log\LoggerInterface;
-use OCP\AppFramework\Utility\ITimeFactory;
-
-use OCA\Talk\Exceptions\ImpossibleToKillException;
-use OCA\Talk\Exceptions\WrongPermissionsException;
-use OCA\Talk\Exceptions\ParticipantNotFoundException;
-use OCA\Talk\Chat\ChatManager;
class MatterbridgeManager {
public const BRIDGE_BOT_USERID = 'bridge-bot';