diff options
author | Joas Schilling <coding@schilljs.com> | 2022-09-01 09:19:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-09-01 10:53:38 +0200 |
commit | a22a546401cfe5546afea968ce74028a2f5eb878 (patch) | |
tree | 645c3ae8405ef429e24531a06119bf7050eba4ea /lib | |
parent | 1cdd96a113eb4912631463c8d273d47f58f0c7a6 (diff) |
Adjust coding style
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
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 |