@@ -28,19 +28,19 @@ |
||
28 | 28 | use OCP\ISession; |
29 | 29 | |
30 | 30 | class UpdateLastPasswordConfirmCommand extends ALoginCommand { |
31 | - /** @var ISession */ |
|
32 | - private $session; |
|
31 | + /** @var ISession */ |
|
32 | + private $session; |
|
33 | 33 | |
34 | - public function __construct(ISession $session) { |
|
35 | - $this->session = $session; |
|
36 | - } |
|
34 | + public function __construct(ISession $session) { |
|
35 | + $this->session = $session; |
|
36 | + } |
|
37 | 37 | |
38 | - public function process(LoginData $loginData): LoginResult { |
|
39 | - $this->session->set( |
|
40 | - 'last-password-confirm', |
|
41 | - $loginData->getUser()->getLastLogin() |
|
42 | - ); |
|
38 | + public function process(LoginData $loginData): LoginResult { |
|
39 | + $this->session->set( |
|
40 | + 'last-password-confirm', |
|
41 | + $loginData->getUser()->getLastLogin() |
|
42 | + ); |
|
43 | 43 | |
44 | - return $this->processNextOrFinishSuccessfully($loginData); |
|
45 | - } |
|
44 | + return $this->processNextOrFinishSuccessfully($loginData); |
|
45 | + } |
|
46 | 46 | } |
@@ -25,22 +25,22 @@ |
||
25 | 25 | namespace OC\App\AppStore\Bundles; |
26 | 26 | |
27 | 27 | class GroupwareBundle extends Bundle { |
28 | - /** |
|
29 | - * {@inheritDoc} |
|
30 | - */ |
|
31 | - public function getName() { |
|
32 | - return $this->l10n->t('Groupware bundle'); |
|
33 | - } |
|
28 | + /** |
|
29 | + * {@inheritDoc} |
|
30 | + */ |
|
31 | + public function getName() { |
|
32 | + return $this->l10n->t('Groupware bundle'); |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * {@inheritDoc} |
|
37 | - */ |
|
38 | - public function getAppIdentifiers() { |
|
39 | - return [ |
|
40 | - 'calendar', |
|
41 | - 'contacts', |
|
42 | - 'deck', |
|
43 | - 'mail' |
|
44 | - ]; |
|
45 | - } |
|
35 | + /** |
|
36 | + * {@inheritDoc} |
|
37 | + */ |
|
38 | + public function getAppIdentifiers() { |
|
39 | + return [ |
|
40 | + 'calendar', |
|
41 | + 'contacts', |
|
42 | + 'deck', |
|
43 | + 'mail' |
|
44 | + ]; |
|
45 | + } |
|
46 | 46 | } |
@@ -24,25 +24,25 @@ |
||
24 | 24 | namespace OC\App\AppStore\Bundles; |
25 | 25 | |
26 | 26 | class EnterpriseBundle extends Bundle { |
27 | - /** |
|
28 | - * {@inheritDoc} |
|
29 | - */ |
|
30 | - public function getName(): string { |
|
31 | - return $this->l10n->t('Enterprise bundle'); |
|
32 | - } |
|
27 | + /** |
|
28 | + * {@inheritDoc} |
|
29 | + */ |
|
30 | + public function getName(): string { |
|
31 | + return $this->l10n->t('Enterprise bundle'); |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * {@inheritDoc} |
|
36 | - */ |
|
37 | - public function getAppIdentifiers(): array { |
|
38 | - return [ |
|
39 | - 'admin_audit', |
|
40 | - 'user_ldap', |
|
41 | - 'files_retention', |
|
42 | - 'files_automatedtagging', |
|
43 | - 'user_saml', |
|
44 | - 'files_accesscontrol', |
|
45 | - 'terms_of_service', |
|
46 | - ]; |
|
47 | - } |
|
34 | + /** |
|
35 | + * {@inheritDoc} |
|
36 | + */ |
|
37 | + public function getAppIdentifiers(): array { |
|
38 | + return [ |
|
39 | + 'admin_audit', |
|
40 | + 'user_ldap', |
|
41 | + 'files_retention', |
|
42 | + 'files_automatedtagging', |
|
43 | + 'user_saml', |
|
44 | + 'files_accesscontrol', |
|
45 | + 'terms_of_service', |
|
46 | + ]; |
|
47 | + } |
|
48 | 48 | } |
@@ -24,22 +24,22 @@ |
||
24 | 24 | namespace OC\App\AppStore\Bundles; |
25 | 25 | |
26 | 26 | class SocialSharingBundle extends Bundle { |
27 | - /** |
|
28 | - * {@inheritDoc} |
|
29 | - */ |
|
30 | - public function getName() { |
|
31 | - return $this->l10n->t('Social sharing bundle'); |
|
32 | - } |
|
27 | + /** |
|
28 | + * {@inheritDoc} |
|
29 | + */ |
|
30 | + public function getName() { |
|
31 | + return $this->l10n->t('Social sharing bundle'); |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * {@inheritDoc} |
|
36 | - */ |
|
37 | - public function getAppIdentifiers() { |
|
38 | - return [ |
|
39 | - 'socialsharing_twitter', |
|
40 | - 'socialsharing_facebook', |
|
41 | - 'socialsharing_email', |
|
42 | - 'socialsharing_diaspora', |
|
43 | - ]; |
|
44 | - } |
|
34 | + /** |
|
35 | + * {@inheritDoc} |
|
36 | + */ |
|
37 | + public function getAppIdentifiers() { |
|
38 | + return [ |
|
39 | + 'socialsharing_twitter', |
|
40 | + 'socialsharing_facebook', |
|
41 | + 'socialsharing_email', |
|
42 | + 'socialsharing_diaspora', |
|
43 | + ]; |
|
44 | + } |
|
45 | 45 | } |
@@ -38,20 +38,20 @@ |
||
38 | 38 | * @since 20.0.0 |
39 | 39 | */ |
40 | 40 | interface IContextPortation { |
41 | - /** |
|
42 | - * All relevant context identifiers that are needed to restore the state |
|
43 | - * of an entity shall be returned with this method. The resulting array |
|
44 | - * must be JSON-serializable. |
|
45 | - * |
|
46 | - * @since 20.0.0 |
|
47 | - */ |
|
48 | - public function exportContextIDs(): array; |
|
41 | + /** |
|
42 | + * All relevant context identifiers that are needed to restore the state |
|
43 | + * of an entity shall be returned with this method. The resulting array |
|
44 | + * must be JSON-serializable. |
|
45 | + * |
|
46 | + * @since 20.0.0 |
|
47 | + */ |
|
48 | + public function exportContextIDs(): array; |
|
49 | 49 | |
50 | - /** |
|
51 | - * This method receives the array as returned by `exportContextIDs()` in |
|
52 | - * order to restore the state of the IEntity if necessary. |
|
53 | - * |
|
54 | - * @since 20.0.0 |
|
55 | - */ |
|
56 | - public function importContextIDs(array $contextIDs): void; |
|
50 | + /** |
|
51 | + * This method receives the array as returned by `exportContextIDs()` in |
|
52 | + * order to restore the state of the IEntity if necessary. |
|
53 | + * |
|
54 | + * @since 20.0.0 |
|
55 | + */ |
|
56 | + public function importContextIDs(array $contextIDs): void; |
|
57 | 57 | } |
@@ -32,15 +32,15 @@ |
||
32 | 32 | * @since 18.0.0 |
33 | 33 | */ |
34 | 34 | interface IDisplayText { |
35 | - /** |
|
36 | - * returns translated text used for display to the end user. For instance, |
|
37 | - * it can describe the event in a human readable way. |
|
38 | - * |
|
39 | - * The entity may react to a verbosity level that is provided. With the |
|
40 | - * basic level, 0, it would return brief information, and more with higher |
|
41 | - * numbers. All information shall be shown at a level of 3. |
|
42 | - * |
|
43 | - * @since 18.0.0 |
|
44 | - */ |
|
45 | - public function getDisplayText(int $verbosity = 0): string; |
|
35 | + /** |
|
36 | + * returns translated text used for display to the end user. For instance, |
|
37 | + * it can describe the event in a human readable way. |
|
38 | + * |
|
39 | + * The entity may react to a verbosity level that is provided. With the |
|
40 | + * basic level, 0, it would return brief information, and more with higher |
|
41 | + * numbers. All information shall be shown at a level of 3. |
|
42 | + * |
|
43 | + * @since 18.0.0 |
|
44 | + */ |
|
45 | + public function getDisplayText(int $verbosity = 0): string; |
|
46 | 46 | } |
@@ -41,14 +41,14 @@ |
||
41 | 41 | * @since 18.0.0 |
42 | 42 | */ |
43 | 43 | interface IComplexOperation extends IOperation { |
44 | - /** |
|
45 | - * As IComplexOperation chooses the triggering events itself, a hint has |
|
46 | - * to be shown to the user so make clear when this operation is becoming |
|
47 | - * active. This method returns such a translated string. |
|
48 | - * |
|
49 | - * Example: "When a file is accessed" (en) |
|
50 | - * |
|
51 | - * @since 18.0.0 |
|
52 | - */ |
|
53 | - public function getTriggerHint(): string; |
|
44 | + /** |
|
45 | + * As IComplexOperation chooses the triggering events itself, a hint has |
|
46 | + * to be shown to the user so make clear when this operation is becoming |
|
47 | + * active. This method returns such a translated string. |
|
48 | + * |
|
49 | + * Example: "When a file is accessed" (en) |
|
50 | + * |
|
51 | + * @since 18.0.0 |
|
52 | + */ |
|
53 | + public function getTriggerHint(): string; |
|
54 | 54 | } |
@@ -38,12 +38,12 @@ |
||
38 | 38 | * @since 18.0.0 |
39 | 39 | */ |
40 | 40 | interface ISpecificOperation extends IOperation { |
41 | - /** |
|
42 | - * returns the id of the entity the operator is designed for |
|
43 | - * |
|
44 | - * Example: 'WorkflowEngine_Entity_File' |
|
45 | - * |
|
46 | - * @since 18.0.0 |
|
47 | - */ |
|
48 | - public function getEntityId():string; |
|
41 | + /** |
|
42 | + * returns the id of the entity the operator is designed for |
|
43 | + * |
|
44 | + * Example: 'WorkflowEngine_Entity_File' |
|
45 | + * |
|
46 | + * @since 18.0.0 |
|
47 | + */ |
|
48 | + public function getEntityId():string; |
|
49 | 49 | } |
@@ -33,22 +33,22 @@ |
||
33 | 33 | * @since 18.0.0 |
34 | 34 | */ |
35 | 35 | class RegisterChecksEvent extends Event { |
36 | - /** @var IManager */ |
|
37 | - private $manager; |
|
36 | + /** @var IManager */ |
|
37 | + private $manager; |
|
38 | 38 | |
39 | - /** |
|
40 | - * @since 18.0.0 |
|
41 | - */ |
|
42 | - public function __construct(IManager $manager) { |
|
43 | - parent::__construct(); |
|
39 | + /** |
|
40 | + * @since 18.0.0 |
|
41 | + */ |
|
42 | + public function __construct(IManager $manager) { |
|
43 | + parent::__construct(); |
|
44 | 44 | |
45 | - $this->manager = $manager; |
|
46 | - } |
|
45 | + $this->manager = $manager; |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * @since 18.0.0 |
|
50 | - */ |
|
51 | - public function registerCheck(ICheck $check): void { |
|
52 | - $this->manager->registerCheck($check); |
|
53 | - } |
|
48 | + /** |
|
49 | + * @since 18.0.0 |
|
50 | + */ |
|
51 | + public function registerCheck(ICheck $check): void { |
|
52 | + $this->manager->registerCheck($check); |
|
53 | + } |
|
54 | 54 | } |