From d09254523f8fc563d659414069c2ce3fbda4096e Mon Sep 17 00:00:00 2001 From: Jonathan Treffler Date: Fri, 5 Apr 2024 20:30:30 +0200 Subject: [PATCH] fix indentation --- lib/AppInfo/Application.php | 10 ++++----- lib/Listener/SabrePluginAddListener.php | 6 ++--- lib/PushTransports/WebPushTransport.php | 2 +- lib/Transport/Transport.php | 14 ++++++------ lib/Transport/TransportManager.php | 30 ++++++++++++------------- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 43fabd5..69e6572 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -21,10 +21,10 @@ class Application extends App implements IBootstrap { parent::__construct(self::APP_ID); } - public function register(IRegistrationContext $context): void { - $context->registerEventListener(SabrePluginAddEvent::class, SabrePluginAddListener::class); - } + public function register(IRegistrationContext $context): void { + $context->registerEventListener(SabrePluginAddEvent::class, SabrePluginAddListener::class); + } - public function boot(IBootContext $context): void { - } + public function boot(IBootContext $context): void { + } } \ No newline at end of file diff --git a/lib/Listener/SabrePluginAddListener.php b/lib/Listener/SabrePluginAddListener.php index ef2876d..ad774d2 100644 --- a/lib/Listener/SabrePluginAddListener.php +++ b/lib/Listener/SabrePluginAddListener.php @@ -17,9 +17,9 @@ class SabrePluginAddListener implements IEventListener { public function handle(Event $event): void { if ($event instanceof SabrePluginAddEvent) { - $serviceDetectionPlugin = $this->container->get(ServiceDetectionPlugin::class); + $serviceDetectionPlugin = $this->container->get(ServiceDetectionPlugin::class); - $event->getServer()->addPlugin($serviceDetectionPlugin); - } + $event->getServer()->addPlugin($serviceDetectionPlugin); + } } } \ No newline at end of file diff --git a/lib/PushTransports/WebPushTransport.php b/lib/PushTransports/WebPushTransport.php index 6a8333a..2acc2db 100644 --- a/lib/PushTransports/WebPushTransport.php +++ b/lib/PushTransports/WebPushTransport.php @@ -7,5 +7,5 @@ namespace OCA\DavPush\PushTransports; use OCA\DavPush\Transport\Transport; class WebPushTransport extends Transport { - protected $id = "web-push"; + protected $id = "web-push"; } \ No newline at end of file diff --git a/lib/Transport/Transport.php b/lib/Transport/Transport.php index a0cc6ff..2a6b693 100644 --- a/lib/Transport/Transport.php +++ b/lib/Transport/Transport.php @@ -5,13 +5,13 @@ declare(strict_types=1); namespace OCA\DavPush\Transport; abstract class Transport { - protected $id; + protected $id; - public function getId() { - return $this->id; - } + public function getId() { + return $this->id; + } - public function getAdditionalInformation() { - return []; - } + public function getAdditionalInformation() { + return []; + } } \ No newline at end of file diff --git a/lib/Transport/TransportManager.php b/lib/Transport/TransportManager.php index d82fb6e..3c12a68 100644 --- a/lib/Transport/TransportManager.php +++ b/lib/Transport/TransportManager.php @@ -10,28 +10,28 @@ use OCA\DavPush\Event\RegisterTransportsEvent; use OCA\DavPush\PushTransports\WebPushTransport; class TransportManager { - /** + /** * @var Transport[] */ private array $transports = []; - public function __construct(IEventDispatcher $dispatcher) { - // register integrated transports - $this->registerTransport(new WebPushTransport()); + public function __construct(IEventDispatcher $dispatcher) { + // register integrated transports + $this->registerTransport(new WebPushTransport()); - // register transports provided by other apps - $event = new RegisterTransportsEvent($this); - $dispatcher->dispatchTyped($event); - } + // register transports provided by other apps + $event = new RegisterTransportsEvent($this); + $dispatcher->dispatchTyped($event); + } - /** - * @return Transport[] - */ - public function getTransports(): array { - return $this->transports; - } + /** + * @return Transport[] + */ + public function getTransports(): array { + return $this->transports; + } - public function registerTransport(Transport $transport): self { + public function registerTransport(Transport $transport): self { $this->transports[] = $transport; return $this; }