diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-10 14:19:56 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-10 14:19:56 +0200 |
commit | caff1023ea72bb2ea94130e18a2a6e2ccf819e5f (patch) | |
tree | 186d494c2aea5dea7255d3584ef5d595fc6e6194 /lib/public/User | |
parent | edf8ce32cffdb920e8171207b342abbd7f1fbe73 (diff) | |
download | nextcloud-server-caff1023ea72bb2ea94130e18a2a6e2ccf819e5f.tar.gz nextcloud-server-caff1023ea72bb2ea94130e18a2a6e2ccf819e5f.zip |
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/User')
13 files changed, 0 insertions, 14 deletions
diff --git a/lib/public/User/Events/BeforePasswordUpdatedEvent.php b/lib/public/User/Events/BeforePasswordUpdatedEvent.php index 11221d97009..85d609e672f 100644 --- a/lib/public/User/Events/BeforePasswordUpdatedEvent.php +++ b/lib/public/User/Events/BeforePasswordUpdatedEvent.php @@ -81,5 +81,4 @@ class BeforePasswordUpdatedEvent extends Event { public function getRecoveryPassword(): ?string { return $this->recoveryPassword; } - } diff --git a/lib/public/User/Events/BeforeUserCreatedEvent.php b/lib/public/User/Events/BeforeUserCreatedEvent.php index 1a00a167dbb..ace929b8ee0 100644 --- a/lib/public/User/Events/BeforeUserCreatedEvent.php +++ b/lib/public/User/Events/BeforeUserCreatedEvent.php @@ -62,5 +62,4 @@ class BeforeUserCreatedEvent extends Event { public function getPassword(): string { return $this->password; } - } diff --git a/lib/public/User/Events/BeforeUserDeletedEvent.php b/lib/public/User/Events/BeforeUserDeletedEvent.php index dd4103c29bf..84e912a9520 100644 --- a/lib/public/User/Events/BeforeUserDeletedEvent.php +++ b/lib/public/User/Events/BeforeUserDeletedEvent.php @@ -53,5 +53,4 @@ class BeforeUserDeletedEvent extends Event { public function getUser(): IUser { return $this->user; } - } diff --git a/lib/public/User/Events/BeforeUserLoggedInEvent.php b/lib/public/User/Events/BeforeUserLoggedInEvent.php index 3f64bf7ce3d..7de1883e17f 100644 --- a/lib/public/User/Events/BeforeUserLoggedInEvent.php +++ b/lib/public/User/Events/BeforeUserLoggedInEvent.php @@ -63,5 +63,4 @@ class BeforeUserLoggedInEvent extends Event { public function getPassword(): string { return $this->password; } - } diff --git a/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php b/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php index 1bcf3231829..7a4ff823f8a 100644 --- a/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php +++ b/lib/public/User/Events/BeforeUserLoggedInWithCookieEvent.php @@ -50,5 +50,4 @@ class BeforeUserLoggedInWithCookieEvent extends Event { public function getUsername(): string { return $this->username; } - } diff --git a/lib/public/User/Events/BeforeUserLoggedOutEvent.php b/lib/public/User/Events/BeforeUserLoggedOutEvent.php index 2d521dc1a94..d470ec5de7f 100644 --- a/lib/public/User/Events/BeforeUserLoggedOutEvent.php +++ b/lib/public/User/Events/BeforeUserLoggedOutEvent.php @@ -51,5 +51,4 @@ class BeforeUserLoggedOutEvent extends Event { public function getUser(): ?IUser { return $this->user; } - } diff --git a/lib/public/User/Events/CreateUserEvent.php b/lib/public/User/Events/CreateUserEvent.php index 37525deb55f..e5c5f8af026 100644 --- a/lib/public/User/Events/CreateUserEvent.php +++ b/lib/public/User/Events/CreateUserEvent.php @@ -62,5 +62,4 @@ class CreateUserEvent extends Event { public function getPassword(): string { return $this->password; } - } diff --git a/lib/public/User/Events/PasswordUpdatedEvent.php b/lib/public/User/Events/PasswordUpdatedEvent.php index 7169448e0cd..8913dc4c53a 100644 --- a/lib/public/User/Events/PasswordUpdatedEvent.php +++ b/lib/public/User/Events/PasswordUpdatedEvent.php @@ -81,5 +81,4 @@ class PasswordUpdatedEvent extends Event { public function getRecoveryPassword(): ?string { return $this->recoveryPassword; } - } diff --git a/lib/public/User/Events/UserChangedEvent.php b/lib/public/User/Events/UserChangedEvent.php index 8bb93d857b5..095e0d17c0b 100644 --- a/lib/public/User/Events/UserChangedEvent.php +++ b/lib/public/User/Events/UserChangedEvent.php @@ -91,6 +91,4 @@ class UserChangedEvent extends Event { public function getOldValue() { return $this->oldValue; } - - } diff --git a/lib/public/User/Events/UserCreatedEvent.php b/lib/public/User/Events/UserCreatedEvent.php index 9c14c30981a..4d5bb2c5b79 100644 --- a/lib/public/User/Events/UserCreatedEvent.php +++ b/lib/public/User/Events/UserCreatedEvent.php @@ -70,5 +70,4 @@ class UserCreatedEvent extends Event { public function getPassword(): string { return $this->password; } - } diff --git a/lib/public/User/Events/UserDeletedEvent.php b/lib/public/User/Events/UserDeletedEvent.php index 22c0e17c218..8e081c44407 100644 --- a/lib/public/User/Events/UserDeletedEvent.php +++ b/lib/public/User/Events/UserDeletedEvent.php @@ -53,5 +53,4 @@ class UserDeletedEvent extends Event { public function getUser(): IUser { return $this->user; } - } diff --git a/lib/public/User/Events/UserLoggedInWithCookieEvent.php b/lib/public/User/Events/UserLoggedInWithCookieEvent.php index 57a8c54c87c..2827af3f90c 100644 --- a/lib/public/User/Events/UserLoggedInWithCookieEvent.php +++ b/lib/public/User/Events/UserLoggedInWithCookieEvent.php @@ -62,5 +62,4 @@ class UserLoggedInWithCookieEvent extends Event { public function getPassword(): ?string { return $this->password; } - } diff --git a/lib/public/User/Events/UserLoggedOutEvent.php b/lib/public/User/Events/UserLoggedOutEvent.php index 4bd18fac2d2..3b1f8745dfe 100644 --- a/lib/public/User/Events/UserLoggedOutEvent.php +++ b/lib/public/User/Events/UserLoggedOutEvent.php @@ -51,5 +51,4 @@ class UserLoggedOutEvent extends Event { public function getUser(): ?IUser { return $this->user; } - } |