diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-10 15:19:56 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-10 15:19:56 +0300 |
commit | caff1023ea72bb2ea94130e18a2a6e2ccf819e5f (patch) | |
tree | 186d494c2aea5dea7255d3584ef5d595fc6e6194 /lib/public/Authentication | |
parent | edf8ce32cffdb920e8171207b342abbd7f1fbe73 (diff) |
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/Authentication')
14 files changed, 0 insertions, 16 deletions
diff --git a/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php b/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php index d5684ade0cd..d2a7d505767 100644 --- a/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php +++ b/lib/public/Authentication/Exceptions/CredentialsUnavailableException.php @@ -29,5 +29,4 @@ use Exception; * @since 12 */ class CredentialsUnavailableException extends Exception { - } diff --git a/lib/public/Authentication/Exceptions/PasswordUnavailableException.php b/lib/public/Authentication/Exceptions/PasswordUnavailableException.php index 935a626e91a..6b826966c87 100644 --- a/lib/public/Authentication/Exceptions/PasswordUnavailableException.php +++ b/lib/public/Authentication/Exceptions/PasswordUnavailableException.php @@ -29,5 +29,4 @@ use Exception; * @since 12 */ class PasswordUnavailableException extends Exception { - } diff --git a/lib/public/Authentication/IApacheBackend.php b/lib/public/Authentication/IApacheBackend.php index 946d4f06625..83b59b789c2 100644 --- a/lib/public/Authentication/IApacheBackend.php +++ b/lib/public/Authentication/IApacheBackend.php @@ -63,5 +63,4 @@ interface IApacheBackend { * @since 6.0.0 */ public function getCurrentUserId(); - } diff --git a/lib/public/Authentication/LoginCredentials/IStore.php b/lib/public/Authentication/LoginCredentials/IStore.php index 7fb645862cf..22562103a72 100644 --- a/lib/public/Authentication/LoginCredentials/IStore.php +++ b/lib/public/Authentication/LoginCredentials/IStore.php @@ -42,5 +42,4 @@ interface IStore { * @return ICredentials the login credentials of the current user */ public function getLoginCredentials(): ICredentials; - } diff --git a/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php b/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php index eaf72e0be78..d71150b3451 100644 --- a/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php +++ b/lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php @@ -32,5 +32,4 @@ use OCP\AppFramework\Controller; * @since 17.0.0 */ abstract class ALoginSetupController extends Controller { - } diff --git a/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php b/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php index f2d70df487a..f1f67f3a4dc 100644 --- a/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php +++ b/lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php @@ -41,5 +41,4 @@ interface IActivatableAtLogin extends IProvider { * @since 17.0.0 */ public function getLoginSetup(IUser $user): ILoginSetupProvider; - } diff --git a/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php b/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php index d48c407ca1b..98160d94647 100644 --- a/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php +++ b/lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php @@ -47,5 +47,4 @@ interface IActivatableByAdmin extends IProvider { * @since 15.0.0 */ public function enableFor(IUser $user); - } diff --git a/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php b/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php index d85480b898f..0f8b527e34a 100644 --- a/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php +++ b/lib/public/Authentication/TwoFactorAuth/IDeactivatableByAdmin.php @@ -47,5 +47,4 @@ interface IDeactivatableByAdmin extends IProvider { * @since 15.0.0 */ public function disableFor(IUser $user); - } diff --git a/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php b/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php index 9cc3a7314cd..7165588566a 100644 --- a/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php +++ b/lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php @@ -39,5 +39,4 @@ interface ILoginSetupProvider { * @since 17.0.0 */ public function getBody(): Template; - } diff --git a/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php b/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php index fe0bab8d64a..5178792b3ae 100644 --- a/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php +++ b/lib/public/Authentication/TwoFactorAuth/IPersonalProviderSettings.php @@ -41,5 +41,4 @@ interface IPersonalProviderSettings { * @since 15.0.0 */ public function getBody(): Template; - } diff --git a/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php b/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php index 255f63cf0df..60315dc8030 100644 --- a/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php +++ b/lib/public/Authentication/TwoFactorAuth/IProvidesIcons.php @@ -51,5 +51,4 @@ interface IProvidesIcons extends IProvider { * @since 15.0.0 */ public function getDarkIcon(): String; - } diff --git a/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php b/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php index 7c1edd2163d..3668e60cd50 100644 --- a/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php +++ b/lib/public/Authentication/TwoFactorAuth/IProvidesPersonalSettings.php @@ -45,5 +45,4 @@ interface IProvidesPersonalSettings extends IProvider { * @since 15.0.0 */ public function getPersonalSettings(IUser $user): IPersonalProviderSettings; - } diff --git a/lib/public/Authentication/TwoFactorAuth/IRegistry.php b/lib/public/Authentication/TwoFactorAuth/IRegistry.php index 70026ca1dad..77aad28620b 100644 --- a/lib/public/Authentication/TwoFactorAuth/IRegistry.php +++ b/lib/public/Authentication/TwoFactorAuth/IRegistry.php @@ -39,8 +39,6 @@ use OCP\IUser; * @since 14.0.0 */ interface IRegistry { - - const EVENT_PROVIDER_ENABLED = self::class . '::enable'; const EVENT_PROVIDER_DISABLED = self::class . '::disable'; @@ -81,5 +79,4 @@ interface IRegistry { * @return void */ public function cleanUp(string $providerId); - } diff --git a/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php b/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php index f4735e9eb16..95ec88de99a 100644 --- a/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php +++ b/lib/public/Authentication/TwoFactorAuth/TwoFactorException.php @@ -38,5 +38,4 @@ use Exception; * @since 12 */ class TwoFactorException extends Exception { - } |