@@ -29,19 +29,19 @@ |
||
| 29 | 29 | |
| 30 | 30 | class AddLogRotateJob implements IRepairStep { |
| 31 | 31 | |
| 32 | - /** @var IJobList */ |
|
| 33 | - private $jobList; |
|
| 32 | + /** @var IJobList */ |
|
| 33 | + private $jobList; |
|
| 34 | 34 | |
| 35 | - public function __construct(IJobList $jobList) { |
|
| 36 | - $this->jobList = $jobList; |
|
| 37 | - } |
|
| 35 | + public function __construct(IJobList $jobList) { |
|
| 36 | + $this->jobList = $jobList; |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - public function getName() { |
|
| 40 | - return 'Add log rotate job'; |
|
| 41 | - } |
|
| 39 | + public function getName() { |
|
| 40 | + return 'Add log rotate job'; |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - public function run(IOutput $output) { |
|
| 44 | - $this->jobList->add(Rotate::class); |
|
| 45 | - } |
|
| 43 | + public function run(IOutput $output) { |
|
| 44 | + $this->jobList->add(Rotate::class); |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | 47 | } |
@@ -26,61 +26,61 @@ |
||
| 26 | 26 | |
| 27 | 27 | interface ILDAPGroupPlugin { |
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * Check if plugin implements actions |
|
| 31 | - * @return int |
|
| 32 | - * |
|
| 33 | - * Returns the supported actions as int to be |
|
| 34 | - * compared with OC_GROUP_BACKEND_CREATE_GROUP etc. |
|
| 35 | - */ |
|
| 36 | - public function respondToActions(); |
|
| 29 | + /** |
|
| 30 | + * Check if plugin implements actions |
|
| 31 | + * @return int |
|
| 32 | + * |
|
| 33 | + * Returns the supported actions as int to be |
|
| 34 | + * compared with OC_GROUP_BACKEND_CREATE_GROUP etc. |
|
| 35 | + */ |
|
| 36 | + public function respondToActions(); |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @param string $gid |
|
| 40 | - * @return string|null The group DN if group creation was successful. |
|
| 41 | - */ |
|
| 42 | - public function createGroup($gid); |
|
| 38 | + /** |
|
| 39 | + * @param string $gid |
|
| 40 | + * @return string|null The group DN if group creation was successful. |
|
| 41 | + */ |
|
| 42 | + public function createGroup($gid); |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * delete a group |
|
| 46 | - * @param string $gid gid of the group to delete |
|
| 47 | - * @return bool |
|
| 48 | - */ |
|
| 49 | - public function deleteGroup($gid); |
|
| 44 | + /** |
|
| 45 | + * delete a group |
|
| 46 | + * @param string $gid gid of the group to delete |
|
| 47 | + * @return bool |
|
| 48 | + */ |
|
| 49 | + public function deleteGroup($gid); |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * Add a user to a group |
|
| 53 | - * @param string $uid Name of the user to add to group |
|
| 54 | - * @param string $gid Name of the group in which add the user |
|
| 55 | - * @return bool |
|
| 56 | - * |
|
| 57 | - * Adds a user to a group. |
|
| 58 | - */ |
|
| 59 | - public function addToGroup($uid, $gid); |
|
| 51 | + /** |
|
| 52 | + * Add a user to a group |
|
| 53 | + * @param string $uid Name of the user to add to group |
|
| 54 | + * @param string $gid Name of the group in which add the user |
|
| 55 | + * @return bool |
|
| 56 | + * |
|
| 57 | + * Adds a user to a group. |
|
| 58 | + */ |
|
| 59 | + public function addToGroup($uid, $gid); |
|
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * Removes a user from a group |
|
| 63 | - * @param string $uid Name of the user to remove from group |
|
| 64 | - * @param string $gid Name of the group from which remove the user |
|
| 65 | - * @return bool |
|
| 66 | - * |
|
| 67 | - * removes the user from a group. |
|
| 68 | - */ |
|
| 69 | - public function removeFromGroup($uid, $gid); |
|
| 61 | + /** |
|
| 62 | + * Removes a user from a group |
|
| 63 | + * @param string $uid Name of the user to remove from group |
|
| 64 | + * @param string $gid Name of the group from which remove the user |
|
| 65 | + * @return bool |
|
| 66 | + * |
|
| 67 | + * removes the user from a group. |
|
| 68 | + */ |
|
| 69 | + public function removeFromGroup($uid, $gid); |
|
| 70 | 70 | |
| 71 | - /** |
|
| 72 | - * get the number of all users matching the search string in a group |
|
| 73 | - * @param string $gid |
|
| 74 | - * @param string $search |
|
| 75 | - * @return int|false |
|
| 76 | - */ |
|
| 77 | - public function countUsersInGroup($gid, $search = ''); |
|
| 71 | + /** |
|
| 72 | + * get the number of all users matching the search string in a group |
|
| 73 | + * @param string $gid |
|
| 74 | + * @param string $search |
|
| 75 | + * @return int|false |
|
| 76 | + */ |
|
| 77 | + public function countUsersInGroup($gid, $search = ''); |
|
| 78 | 78 | |
| 79 | - /** |
|
| 80 | - * get an array with group details |
|
| 81 | - * @param string $gid |
|
| 82 | - * @return array|false |
|
| 83 | - */ |
|
| 84 | - public function getGroupDetails($gid); |
|
| 79 | + /** |
|
| 80 | + * get an array with group details |
|
| 81 | + * @param string $gid |
|
| 82 | + * @return array|false |
|
| 83 | + */ |
|
| 84 | + public function getGroupDetails($gid); |
|
| 85 | 85 | |
| 86 | 86 | } |
@@ -30,12 +30,12 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | interface IReporter { |
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * Report an (unhandled) exception |
|
| 35 | - * |
|
| 36 | - * @since 13.0.0 |
|
| 37 | - * @param Exception|Throwable $exception |
|
| 38 | - * @param array $context |
|
| 39 | - */ |
|
| 40 | - public function report($exception, array $context = []); |
|
| 33 | + /** |
|
| 34 | + * Report an (unhandled) exception |
|
| 35 | + * |
|
| 36 | + * @since 13.0.0 |
|
| 37 | + * @param Exception|Throwable $exception |
|
| 38 | + * @param array $context |
|
| 39 | + */ |
|
| 40 | + public function report($exception, array $context = []); |
|
| 41 | 41 | } |
@@ -27,17 +27,17 @@ |
||
| 27 | 27 | * @since 13.0.0 |
| 28 | 28 | */ |
| 29 | 29 | interface ICachedMountFileInfo extends ICachedMountInfo { |
| 30 | - /** |
|
| 31 | - * Return the path for the file within the cached mount |
|
| 32 | - * |
|
| 33 | - * @return string |
|
| 34 | - * @since 13.0.0 |
|
| 35 | - */ |
|
| 36 | - public function getInternalPath(); |
|
| 30 | + /** |
|
| 31 | + * Return the path for the file within the cached mount |
|
| 32 | + * |
|
| 33 | + * @return string |
|
| 34 | + * @since 13.0.0 |
|
| 35 | + */ |
|
| 36 | + public function getInternalPath(); |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @return string |
|
| 40 | - * @since 13.0.0 |
|
| 41 | - */ |
|
| 42 | - public function getPath(); |
|
| 38 | + /** |
|
| 39 | + * @return string |
|
| 40 | + * @since 13.0.0 |
|
| 41 | + */ |
|
| 42 | + public function getPath(); |
|
| 43 | 43 | } |
@@ -33,26 +33,26 @@ |
||
| 33 | 33 | * @package OC\Security\RateLimiting\Backend |
| 34 | 34 | */ |
| 35 | 35 | interface IBackend { |
| 36 | - /** |
|
| 37 | - * Gets the amount of attempts within the last specified seconds |
|
| 38 | - * |
|
| 39 | - * @param string $methodIdentifier Identifier for the method |
|
| 40 | - * @param string $userIdentifier Identifier for the user |
|
| 41 | - * @param int $seconds Seconds to look back at |
|
| 42 | - * @return int |
|
| 43 | - */ |
|
| 44 | - public function getAttempts(string $methodIdentifier, |
|
| 45 | - string $userIdentifier, |
|
| 46 | - int $seconds): int; |
|
| 36 | + /** |
|
| 37 | + * Gets the amount of attempts within the last specified seconds |
|
| 38 | + * |
|
| 39 | + * @param string $methodIdentifier Identifier for the method |
|
| 40 | + * @param string $userIdentifier Identifier for the user |
|
| 41 | + * @param int $seconds Seconds to look back at |
|
| 42 | + * @return int |
|
| 43 | + */ |
|
| 44 | + public function getAttempts(string $methodIdentifier, |
|
| 45 | + string $userIdentifier, |
|
| 46 | + int $seconds): int; |
|
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * Registers an attempt |
|
| 50 | - * |
|
| 51 | - * @param string $methodIdentifier Identifier for the method |
|
| 52 | - * @param string $userIdentifier Identifier for the user |
|
| 53 | - * @param int $period Period in seconds how long this attempt should be stored |
|
| 54 | - */ |
|
| 55 | - public function registerAttempt(string $methodIdentifier, |
|
| 56 | - string $userIdentifier, |
|
| 57 | - int $period); |
|
| 48 | + /** |
|
| 49 | + * Registers an attempt |
|
| 50 | + * |
|
| 51 | + * @param string $methodIdentifier Identifier for the method |
|
| 52 | + * @param string $userIdentifier Identifier for the user |
|
| 53 | + * @param int $period Period in seconds how long this attempt should be stored |
|
| 54 | + */ |
|
| 55 | + public function registerAttempt(string $methodIdentifier, |
|
| 56 | + string $userIdentifier, |
|
| 57 | + int $period); |
|
| 58 | 58 | } |
@@ -23,19 +23,19 @@ |
||
| 23 | 23 | // WARNING: this should be moved to proper AppFramework handling |
| 24 | 24 | // Check if we are a user |
| 25 | 25 | if (!\OC::$server->getUserSession()->isLoggedIn()) { |
| 26 | - header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute( |
|
| 27 | - 'core.login.showLoginForm', |
|
| 28 | - [ |
|
| 29 | - 'redirect_url' => \OC::$server->getRequest()->getRequestUri(), |
|
| 30 | - ] |
|
| 31 | - ) |
|
| 32 | - ); |
|
| 33 | - exit(); |
|
| 26 | + header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute( |
|
| 27 | + 'core.login.showLoginForm', |
|
| 28 | + [ |
|
| 29 | + 'redirect_url' => \OC::$server->getRequest()->getRequestUri(), |
|
| 30 | + ] |
|
| 31 | + ) |
|
| 32 | + ); |
|
| 33 | + exit(); |
|
| 34 | 34 | } |
| 35 | 35 | // Redirect to 2FA challenge selection if 2FA challenge was not solved yet |
| 36 | 36 | if (\OC::$server->getTwoFactorAuthManager()->needsSecondFactor(\OC::$server->getUserSession()->getUser())) { |
| 37 | - header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.selectChallenge')); |
|
| 38 | - exit(); |
|
| 37 | + header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.selectChallenge')); |
|
| 38 | + exit(); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $tmpl = new OCP\Template('systemtags', 'list', ''); |
@@ -30,35 +30,35 @@ |
||
| 30 | 30 | * @since 12.0.0 |
| 31 | 31 | */ |
| 32 | 32 | interface ICloudId { |
| 33 | - /** |
|
| 34 | - * The remote cloud id |
|
| 35 | - * |
|
| 36 | - * @return string |
|
| 37 | - * @since 12.0.0 |
|
| 38 | - */ |
|
| 39 | - public function getId(): string; |
|
| 33 | + /** |
|
| 34 | + * The remote cloud id |
|
| 35 | + * |
|
| 36 | + * @return string |
|
| 37 | + * @since 12.0.0 |
|
| 38 | + */ |
|
| 39 | + public function getId(): string; |
|
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * Get a clean representation of the cloud id for display |
|
| 43 | - * |
|
| 44 | - * @return string |
|
| 45 | - * @since 12.0.0 |
|
| 46 | - */ |
|
| 47 | - public function getDisplayId(): string; |
|
| 41 | + /** |
|
| 42 | + * Get a clean representation of the cloud id for display |
|
| 43 | + * |
|
| 44 | + * @return string |
|
| 45 | + * @since 12.0.0 |
|
| 46 | + */ |
|
| 47 | + public function getDisplayId(): string; |
|
| 48 | 48 | |
| 49 | - /** |
|
| 50 | - * The username on the remote server |
|
| 51 | - * |
|
| 52 | - * @return string |
|
| 53 | - * @since 12.0.0 |
|
| 54 | - */ |
|
| 55 | - public function getUser(): string; |
|
| 49 | + /** |
|
| 50 | + * The username on the remote server |
|
| 51 | + * |
|
| 52 | + * @return string |
|
| 53 | + * @since 12.0.0 |
|
| 54 | + */ |
|
| 55 | + public function getUser(): string; |
|
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * The base address of the remote server |
|
| 59 | - * |
|
| 60 | - * @return string |
|
| 61 | - * @since 12.0.0 |
|
| 62 | - */ |
|
| 63 | - public function getRemote(): string; |
|
| 57 | + /** |
|
| 58 | + * The base address of the remote server |
|
| 59 | + * |
|
| 60 | + * @return string |
|
| 61 | + * @since 12.0.0 |
|
| 62 | + */ |
|
| 63 | + public function getRemote(): string; |
|
| 64 | 64 | } |
@@ -31,33 +31,33 @@ |
||
| 31 | 31 | * @since 12.0.0 |
| 32 | 32 | */ |
| 33 | 33 | interface ICloudIdManager { |
| 34 | - /** |
|
| 35 | - * @param string $cloudId |
|
| 36 | - * @return ICloudId |
|
| 37 | - * @throws \InvalidArgumentException |
|
| 38 | - * |
|
| 39 | - * @since 12.0.0 |
|
| 40 | - */ |
|
| 41 | - public function resolveCloudId(string $cloudId): ICloudId; |
|
| 34 | + /** |
|
| 35 | + * @param string $cloudId |
|
| 36 | + * @return ICloudId |
|
| 37 | + * @throws \InvalidArgumentException |
|
| 38 | + * |
|
| 39 | + * @since 12.0.0 |
|
| 40 | + */ |
|
| 41 | + public function resolveCloudId(string $cloudId): ICloudId; |
|
| 42 | 42 | |
| 43 | - /** |
|
| 44 | - * Get the cloud id for a remote user |
|
| 45 | - * |
|
| 46 | - * @param string $user |
|
| 47 | - * @param string $remote |
|
| 48 | - * @return ICloudId |
|
| 49 | - * |
|
| 50 | - * @since 12.0.0 |
|
| 51 | - */ |
|
| 52 | - public function getCloudId(string $user, string $remote): ICloudId; |
|
| 43 | + /** |
|
| 44 | + * Get the cloud id for a remote user |
|
| 45 | + * |
|
| 46 | + * @param string $user |
|
| 47 | + * @param string $remote |
|
| 48 | + * @return ICloudId |
|
| 49 | + * |
|
| 50 | + * @since 12.0.0 |
|
| 51 | + */ |
|
| 52 | + public function getCloudId(string $user, string $remote): ICloudId; |
|
| 53 | 53 | |
| 54 | - /** |
|
| 55 | - * Check if the input is a correctly formatted cloud id |
|
| 56 | - * |
|
| 57 | - * @param string $cloudId |
|
| 58 | - * @return bool |
|
| 59 | - * |
|
| 60 | - * @since 12.0.0 |
|
| 61 | - */ |
|
| 62 | - public function isValidCloudId(string $cloudId): bool; |
|
| 54 | + /** |
|
| 55 | + * Check if the input is a correctly formatted cloud id |
|
| 56 | + * |
|
| 57 | + * @param string $cloudId |
|
| 58 | + * @return bool |
|
| 59 | + * |
|
| 60 | + * @since 12.0.0 |
|
| 61 | + */ |
|
| 62 | + public function isValidCloudId(string $cloudId): bool; |
|
| 63 | 63 | } |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | * @since 8.1.0 |
| 32 | 32 | */ |
| 33 | 33 | interface IClientService { |
| 34 | - /** |
|
| 35 | - * @return IClient |
|
| 36 | - * @since 8.1.0 |
|
| 37 | - */ |
|
| 38 | - public function newClient(): IClient; |
|
| 34 | + /** |
|
| 35 | + * @return IClient |
|
| 36 | + * @since 8.1.0 |
|
| 37 | + */ |
|
| 38 | + public function newClient(): IClient; |
|
| 39 | 39 | } |