summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-09-01 09:19:51 +0200
committerJoas Schilling <coding@schilljs.com>2022-09-01 10:53:38 +0200
commita22a546401cfe5546afea968ce74028a2f5eb878 (patch)
tree645c3ae8405ef429e24531a06119bf7050eba4ea /lib
parent1cdd96a113eb4912631463c8d273d47f58f0c7a6 (diff)
Adjust coding style
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Activity/Provider/Call.php1
-rw-r--r--lib/Activity/Provider/Invitation.php1
-rw-r--r--lib/BackgroundJob/CheckHostedSignalingServer.php2
-rw-r--r--lib/Chat/Parser/Changelog.php1
-rw-r--r--lib/Chat/Parser/UserMention.php1
-rw-r--r--lib/Controller/RoomController.php2
-rw-r--r--lib/Controller/SignalingController.php3
-rw-r--r--lib/Events/EndCallForEveryoneEvent.php1
-rw-r--r--lib/Federation/Notifications.php12
-rw-r--r--lib/Flow/Operation.php1
-rw-r--r--lib/Manager.php16
-rw-r--r--lib/Migration/Version10000Date20201015134000.php2
-rw-r--r--lib/Migration/Version10000Date20201015143852.php1
-rw-r--r--lib/Migration/Version10000Date20201015150000.php1
-rw-r--r--lib/Migration/Version11000Date20201011082810.php1
-rw-r--r--lib/Migration/Version12000Date20210217134030.php1
-rw-r--r--lib/Migration/Version12000Date20210401124139.php1
-rw-r--r--lib/Migration/Version12000Date20210528100404.php1
-rw-r--r--lib/Migration/Version14000Date20220328153054.php1
-rw-r--r--lib/Migration/Version15000Date20220506005058.php1
-rw-r--r--lib/Migration/Version2000Date20170707093535.php1
-rw-r--r--lib/Migration/Version2001Date20170913104501.php1
-rw-r--r--lib/Migration/Version2001Date20170921145301.php1
-rw-r--r--lib/Migration/Version2001Date20171009132424.php1
-rw-r--r--lib/Migration/Version2001Date20171026141336.php1
-rw-r--r--lib/Migration/Version2001Date20171031102049.php1
-rw-r--r--lib/Migration/Version2001Date20180103150836.php1
-rw-r--r--lib/Migration/Version3002Date20180319104030.php1
-rw-r--r--lib/Migration/Version3003Date20180707222130.php1
-rw-r--r--lib/Migration/Version3003Date20180720162342.php1
-rw-r--r--lib/Migration/Version3003Date20180722152733.php1
-rw-r--r--lib/Migration/Version3003Date20180722152849.php1
-rw-r--r--lib/Migration/Version3003Date20180730080327.php1
-rw-r--r--lib/Migration/Version4099Date20181001123058.php1
-rw-r--r--lib/Migration/Version5099Date20190319134820.php1
-rw-r--r--lib/Migration/Version6099Date20190627172429.php1
-rw-r--r--lib/Migration/Version7000Date20190717141457.php1
-rw-r--r--lib/Model/AttendeeMapper.php1
-rw-r--r--lib/Model/CommandMapper.php1
-rw-r--r--lib/Model/Message.php1
-rw-r--r--lib/Model/PollMapper.php1
-rw-r--r--lib/Model/SessionMapper.php1
-rw-r--r--lib/Model/VoteMapper.php1
-rw-r--r--lib/Room.php1
-rw-r--r--lib/Search/CurrentMessageSearch.php1
-rw-r--r--lib/Service/HostedSignalingServerService.php8
-rw-r--r--lib/Service/PollService.php8
-rw-r--r--lib/Share/RoomShareProvider.php1
-rw-r--r--lib/TInitialState.php1
49 files changed, 26 insertions, 68 deletions
diff --git a/lib/Activity/Provider/Call.php b/lib/Activity/Provider/Call.php
index 3a134ccd0..8d33018db 100644
--- a/lib/Activity/Provider/Call.php
+++ b/lib/Activity/Provider/Call.php
@@ -27,7 +27,6 @@ use OCP\Activity\IEvent;
use OCP\IL10N;
class Call extends Base {
-
/**
* @param string $language
* @param IEvent $event
diff --git a/lib/Activity/Provider/Invitation.php b/lib/Activity/Provider/Invitation.php
index 33ff9becf..bf870c734 100644
--- a/lib/Activity/Provider/Invitation.php
+++ b/lib/Activity/Provider/Invitation.php
@@ -27,7 +27,6 @@ use OCA\Talk\Exceptions\RoomNotFoundException;
use OCP\Activity\IEvent;
class Invitation extends Base {
-
/**
* @param string $language
* @param IEvent $event
diff --git a/lib/BackgroundJob/CheckHostedSignalingServer.php b/lib/BackgroundJob/CheckHostedSignalingServer.php
index c47b72209..338647260 100644
--- a/lib/BackgroundJob/CheckHostedSignalingServer.php
+++ b/lib/BackgroundJob/CheckHostedSignalingServer.php
@@ -122,7 +122,7 @@ class CheckHostedSignalingServer extends TimedJob {
];
}
- // only credentials have changed
+ // only credentials have changed
} elseif ($newStatus === 'active' && (
$oldAccountInfo['signaling']['url'] !== $accountInfo['signaling']['url'] ||
$oldAccountInfo['signaling']['secret'] !== $accountInfo['signaling']['secret'])
diff --git a/lib/Chat/Parser/Changelog.php b/lib/Chat/Parser/Changelog.php
index d1c8ce129..c0c24a90d 100644
--- a/lib/Chat/Parser/Changelog.php
+++ b/lib/Chat/Parser/Changelog.php
@@ -27,7 +27,6 @@ use OCA\Talk\Model\Attendee;
use OCA\Talk\Model\Message;
class Changelog {
-
/**
* @param Message $chatMessage
* @throws \OutOfBoundsException
diff --git a/lib/Chat/Parser/UserMention.php b/lib/Chat/Parser/UserMention.php
index 4c4ba060e..58db178df 100644
--- a/lib/Chat/Parser/UserMention.php
+++ b/lib/Chat/Parser/UserMention.php
@@ -37,7 +37,6 @@ use OCP\IUserManager;
* Helper class to get a rich message from a plain text message.
*/
class UserMention {
-
/**
* Do NOT inject OCA\Talk\Chat\CommentsManager here
* otherwise the display name resolvers are lost
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index a9756ee6e..79b06b632 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -161,7 +161,7 @@ class RoomController extends AEnvironmentAwareController {
$this->config->getAppValue('spreed', 'sip_bridge_dialin_info') . '#' .
$this->config->getAppValue('spreed', 'sip_bridge_shared_secret') . '#' .
$this->config->getAppValue('theming', 'cachebuster', '1')
- )];
+ )];
}
/**
diff --git a/lib/Controller/SignalingController.php b/lib/Controller/SignalingController.php
index 20954020f..3e44e1886 100644
--- a/lib/Controller/SignalingController.php
+++ b/lib/Controller/SignalingController.php
@@ -54,7 +54,6 @@ use OCP\IUserManager;
use Psr\Log\LoggerInterface;
class SignalingController extends OCSController {
-
/** @var int */
private const PULL_MESSAGES_TIMEOUT = 30;
@@ -445,7 +444,7 @@ class SignalingController extends OCSController {
*/
private function validateBackendRequest(string $data): bool {
if (!isset($_SERVER['HTTP_SPREED_SIGNALING_RANDOM'],
- $_SERVER['HTTP_SPREED_SIGNALING_CHECKSUM'])) {
+ $_SERVER['HTTP_SPREED_SIGNALING_CHECKSUM'])) {
return false;
}
$random = $_SERVER['HTTP_SPREED_SIGNALING_RANDOM'];
diff --git a/lib/Events/EndCallForEveryoneEvent.php b/lib/Events/EndCallForEveryoneEvent.php
index 3dfd17854..2a694037c 100644
--- a/lib/Events/EndCallForEveryoneEvent.php
+++ b/lib/Events/EndCallForEveryoneEvent.php
@@ -27,7 +27,6 @@ use OCA\Talk\Participant;
use OCA\Talk\Room;
class EndCallForEveryoneEvent extends ModifyRoomEvent {
-
/** @var string[] */
protected array $sessionIds = [];
/** @var string[] */
diff --git a/lib/Federation/Notifications.php b/lib/Federation/Notifications.php
index 381444a9f..d7e27d730 100644
--- a/lib/Federation/Notifications.php
+++ b/lib/Federation/Notifications.php
@@ -149,12 +149,12 @@ class Notifications {
$notification = $this->cloudFederationFactory->getCloudFederationNotification();
$notification->setMessage(
'SHARE_ACCEPTED',
- FederationManager::TALK_ROOM_RESOURCE,
- $id,
- [
- 'sharedSecret' => $token,
- 'message' => 'Recipient accepted the share',
- ]);
+ FederationManager::TALK_ROOM_RESOURCE,
+ $id,
+ [
+ 'sharedSecret' => $token,
+ 'message' => 'Recipient accepted the share',
+ ]);
$response = $this->federationProviderManager->sendNotification($remote, $notification);
if (!is_array($response)) {
$this->logger->info(
diff --git a/lib/Flow/Operation.php b/lib/Flow/Operation.php
index c130722c1..cf95d3ada 100644
--- a/lib/Flow/Operation.php
+++ b/lib/Flow/Operation.php
@@ -45,7 +45,6 @@ use OCP\WorkflowEngine\IRuleMatcher;
use UnexpectedValueException;
class Operation implements IOperation {
-
/** @var int[] */
public const MESSAGE_MODES = [
'NO_MENTION' => 1,
diff --git a/lib/Manager.php b/lib/Manager.php
index 1e2798ee0..4a9d5100b 100644
--- a/lib/Manager.php
+++ b/lib/Manager.php
@@ -489,10 +489,10 @@ class Manager {
// Non guest user
$helper->selectAttendeesTable($query);
$query->leftJoin('r', 'talk_attendees', 'a', $query->expr()->andX(
- $query->expr()->eq('a.actor_id', $query->createNamedParameter($userId)),
- $query->expr()->eq('a.actor_type', $query->createNamedParameter(Attendee::ACTOR_USERS)),
- $query->expr()->eq('a.room_id', 'r.id')
- ))
+ $query->expr()->eq('a.actor_id', $query->createNamedParameter($userId)),
+ $query->expr()->eq('a.actor_type', $query->createNamedParameter(Attendee::ACTOR_USERS)),
+ $query->expr()->eq('a.room_id', 'r.id')
+ ))
->andWhere($query->expr()->isNotNull('a.id'));
}
@@ -550,10 +550,10 @@ class Manager {
// Non guest user
$helper->selectAttendeesTable($query);
$query->leftJoin('r', 'talk_attendees', 'a', $query->expr()->andX(
- $query->expr()->eq('a.actor_id', $query->createNamedParameter($userId)),
- $query->expr()->eq('a.actor_type', $query->createNamedParameter(Attendee::ACTOR_USERS)),
- $query->expr()->eq('a.room_id', 'r.id')
- ));
+ $query->expr()->eq('a.actor_id', $query->createNamedParameter($userId)),
+ $query->expr()->eq('a.actor_type', $query->createNamedParameter(Attendee::ACTOR_USERS)),
+ $query->expr()->eq('a.room_id', 'r.id')
+ ));
if ($sessionId !== null) {
$helper->selectSessionsTable($query);
$query->leftJoin('a', 'talk_sessions', 's', $query->expr()->andX(
diff --git a/lib/Migration/Version10000Date20201015134000.php b/lib/Migration/Version10000Date20201015134000.php
index 1e363f682..4bc53ab99 100644
--- a/lib/Migration/Version10000Date20201015134000.php
+++ b/lib/Migration/Version10000Date20201015134000.php