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

github.com/nextcloud/twofactor_gateway.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-17 10:22:41 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-17 10:22:41 +0300
commitb6a2707f295543e94ea5fccf12930655e44820da (patch)
tree725d79d92eb8e3035a2a0c736cded94bfa426141 /lib/Provider
parent05084646a34c982d53be4282439a10cbe32e3682 (diff)
Fix the coding style
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Provider')
-rw-r--r--lib/Provider/AProvider.php10
-rw-r--r--lib/Provider/Factory.php3
-rw-r--r--lib/Provider/SignalProvider.php2
-rw-r--r--lib/Provider/SmsProvider.php2
-rw-r--r--lib/Provider/State.php1
-rw-r--r--lib/Provider/TelegramProvider.php2
6 files changed, 5 insertions, 15 deletions
diff --git a/lib/Provider/AProvider.php b/lib/Provider/AProvider.php
index dac6f92..4d989f5 100644
--- a/lib/Provider/AProvider.php
+++ b/lib/Provider/AProvider.php
@@ -40,11 +40,10 @@ use OCP\Security\ISecureRandom;
use OCP\Template;
abstract class AProvider implements IProvider, IProvidesIcons, IProvidesPersonalSettings {
-
- const STATE_DISABLED = 0;
- const STATE_START_VERIFICATION = 1;
- const STATE_VERIFYING = 2;
- const STATE_ENABLED = 3;
+ public const STATE_DISABLED = 0;
+ public const STATE_START_VERIFICATION = 1;
+ public const STATE_VERIFYING = 2;
+ public const STATE_ENABLED = 3;
/** @var string */
protected $gatewayName;
@@ -156,5 +155,4 @@ abstract class AProvider implements IProvider, IProvidesIcons, IProvidesPersonal
public function getDarkIcon(): String {
return image_path(Application::APP_NAME, 'app-dark.svg');
}
-
}
diff --git a/lib/Provider/Factory.php b/lib/Provider/Factory.php
index 466effc..cda5ccd 100644
--- a/lib/Provider/Factory.php
+++ b/lib/Provider/Factory.php
@@ -58,5 +58,4 @@ class Factory {
throw new InvalidSmsProviderException();
}
}
-
-} \ No newline at end of file
+}
diff --git a/lib/Provider/SignalProvider.php b/lib/Provider/SignalProvider.php
index a403213..bf16899 100644
--- a/lib/Provider/SignalProvider.php
+++ b/lib/Provider/SignalProvider.php
@@ -30,7 +30,6 @@ use OCP\ISession;
use OCP\Security\ISecureRandom;
class SignalProvider extends AProvider {
-
public function __construct(Gateway $smsGateway,
StateStorage $stateStorage,
ISession $session,
@@ -59,5 +58,4 @@ class SignalProvider extends AProvider {
public function getDescription(): string {
return $this->l10n->t('Authenticate via Signal');
}
-
}
diff --git a/lib/Provider/SmsProvider.php b/lib/Provider/SmsProvider.php
index 1a4a44e..57631fc 100644
--- a/lib/Provider/SmsProvider.php
+++ b/lib/Provider/SmsProvider.php
@@ -30,7 +30,6 @@ use OCP\ISession;
use OCP\Security\ISecureRandom;
class SmsProvider extends AProvider {
-
public function __construct(Gateway $smsGateway,
StateStorage $stateStorage,
ISession $session,
@@ -59,5 +58,4 @@ class SmsProvider extends AProvider {
public function getDescription(): string {
return $this->l10n->t('Authenticate via SMS');
}
-
}
diff --git a/lib/Provider/State.php b/lib/Provider/State.php
index ae0db6a..0a9794f 100644
--- a/lib/Provider/State.php
+++ b/lib/Provider/State.php
@@ -129,5 +129,4 @@ class State implements JsonSerializable {
'phoneNumber' => $this->identifier,
];
}
-
}
diff --git a/lib/Provider/TelegramProvider.php b/lib/Provider/TelegramProvider.php
index 6eb011a..639e1b9 100644
--- a/lib/Provider/TelegramProvider.php
+++ b/lib/Provider/TelegramProvider.php
@@ -30,7 +30,6 @@ use OCP\ISession;
use OCP\Security\ISecureRandom;
class TelegramProvider extends AProvider {
-
public function __construct(Gateway $smsGateway,
StateStorage $stateStorage,
ISession $session,
@@ -66,5 +65,4 @@ class TelegramProvider extends AProvider {
public function getDescription(): string {
return $this->l10n->t('Authenticate via Telegram');
}
-
}