@@ -34,21 +34,21 @@ |
||
34 | 34 | * @since 18.0.0 |
35 | 35 | */ |
36 | 36 | class BeforeUserLoggedInWithCookieEvent extends Event { |
37 | - /** @var string */ |
|
38 | - private $username; |
|
37 | + /** @var string */ |
|
38 | + private $username; |
|
39 | 39 | |
40 | - /** |
|
41 | - * @since 18.0.0 |
|
42 | - */ |
|
43 | - public function __construct(string $username) { |
|
44 | - parent::__construct(); |
|
45 | - $this->username = $username; |
|
46 | - } |
|
40 | + /** |
|
41 | + * @since 18.0.0 |
|
42 | + */ |
|
43 | + public function __construct(string $username) { |
|
44 | + parent::__construct(); |
|
45 | + $this->username = $username; |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * @since 18.0.0 |
|
50 | - */ |
|
51 | - public function getUsername(): string { |
|
52 | - return $this->username; |
|
53 | - } |
|
48 | + /** |
|
49 | + * @since 18.0.0 |
|
50 | + */ |
|
51 | + public function getUsername(): string { |
|
52 | + return $this->username; |
|
53 | + } |
|
54 | 54 | } |
@@ -29,11 +29,11 @@ |
||
29 | 29 | * @since 14.0.0 |
30 | 30 | */ |
31 | 31 | interface IGetDisplayNameBackend { |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - * |
|
35 | - * @param string $uid user ID of the user |
|
36 | - * @return string display name |
|
37 | - */ |
|
38 | - public function getDisplayName($uid): string; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + * |
|
35 | + * @param string $uid user ID of the user |
|
36 | + * @return string display name |
|
37 | + */ |
|
38 | + public function getDisplayName($uid): string; |
|
39 | 39 | } |
@@ -29,11 +29,11 @@ |
||
29 | 29 | * @since 14.0.0 |
30 | 30 | */ |
31 | 31 | interface IGetHomeBackend { |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - * |
|
35 | - * @param string $uid the username |
|
36 | - * @return string|bool Datadir on success false on failure |
|
37 | - */ |
|
38 | - public function getHome(string $uid); |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + * |
|
35 | + * @param string $uid the username |
|
36 | + * @return string|bool Datadir on success false on failure |
|
37 | + */ |
|
38 | + public function getHome(string $uid); |
|
39 | 39 | } |
@@ -29,15 +29,15 @@ |
||
29 | 29 | * @since 14.0.0 |
30 | 30 | */ |
31 | 31 | interface ISetDisplayNameBackend { |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - * |
|
35 | - * @param string $uid The username |
|
36 | - * @param string $displayName The new display name |
|
37 | - * @return bool |
|
38 | - * |
|
39 | - * @since 25.0.0 Throw InvalidArgumentException |
|
40 | - * @throws \InvalidArgumentException |
|
41 | - */ |
|
42 | - public function setDisplayName(string $uid, string $displayName): bool; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + * |
|
35 | + * @param string $uid The username |
|
36 | + * @param string $displayName The new display name |
|
37 | + * @return bool |
|
38 | + * |
|
39 | + * @since 25.0.0 Throw InvalidArgumentException |
|
40 | + * @throws \InvalidArgumentException |
|
41 | + */ |
|
42 | + public function setDisplayName(string $uid, string $displayName): bool; |
|
43 | 43 | } |
@@ -29,12 +29,12 @@ |
||
29 | 29 | * @since 14.0.0 |
30 | 30 | */ |
31 | 31 | interface ISetPasswordBackend { |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - * |
|
35 | - * @param string $uid The username |
|
36 | - * @param string $password The new password |
|
37 | - * @return bool |
|
38 | - */ |
|
39 | - public function setPassword(string $uid, string $password): bool; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + * |
|
35 | + * @param string $uid The username |
|
36 | + * @param string $password The new password |
|
37 | + * @return bool |
|
38 | + */ |
|
39 | + public function setPassword(string $uid, string $password): bool; |
|
40 | 40 | } |
@@ -29,13 +29,13 @@ |
||
29 | 29 | * @since 21.0.1 |
30 | 30 | */ |
31 | 31 | interface ISearchKnownUsersBackend { |
32 | - /** |
|
33 | - * @param string $searcher |
|
34 | - * @param string $pattern |
|
35 | - * @param int|null $limit |
|
36 | - * @param int|null $offset |
|
37 | - * @return array |
|
38 | - * @since 21.0.1 |
|
39 | - */ |
|
40 | - public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array; |
|
32 | + /** |
|
33 | + * @param string $searcher |
|
34 | + * @param string $pattern |
|
35 | + * @param int|null $limit |
|
36 | + * @param int|null $offset |
|
37 | + * @return array |
|
38 | + * @since 21.0.1 |
|
39 | + */ |
|
40 | + public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array; |
|
41 | 41 | } |
@@ -29,11 +29,11 @@ |
||
29 | 29 | * @since 14.0.0 |
30 | 30 | */ |
31 | 31 | interface IProvideAvatarBackend { |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - * |
|
35 | - * @param string $uid |
|
36 | - * @return bool |
|
37 | - */ |
|
38 | - public function canChangeAvatar(string $uid): bool; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + * |
|
35 | + * @param string $uid |
|
36 | + * @return bool |
|
37 | + */ |
|
38 | + public function canChangeAvatar(string $uid): bool; |
|
39 | 39 | } |
@@ -29,12 +29,12 @@ |
||
29 | 29 | * @since 14.0.0 |
30 | 30 | */ |
31 | 31 | interface ICreateUserBackend { |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - * |
|
35 | - * @param string $uid The username of the user to create |
|
36 | - * @param string $password The password of the new user |
|
37 | - * @return bool |
|
38 | - */ |
|
39 | - public function createUser(string $uid, string $password): bool; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + * |
|
35 | + * @param string $uid The username of the user to create |
|
36 | + * @param string $password The password of the new user |
|
37 | + * @return bool |
|
38 | + */ |
|
39 | + public function createUser(string $uid, string $password): bool; |
|
40 | 40 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | * @since 15.0.0 |
30 | 30 | */ |
31 | 31 | interface IPasswordConfirmationBackend { |
32 | - /** |
|
33 | - * @since 15.0.0 |
|
34 | - */ |
|
35 | - public function canConfirmPassword(string $uid): bool; |
|
32 | + /** |
|
33 | + * @since 15.0.0 |
|
34 | + */ |
|
35 | + public function canConfirmPassword(string $uid): bool; |
|
36 | 36 | } |