@@ -30,33 +30,33 @@ |
||
30 | 30 | */ |
31 | 31 | interface ICloudFederationFactory { |
32 | 32 | |
33 | - /** |
|
34 | - * get a CloudFederationShare Object to prepare a share you want to send |
|
35 | - * |
|
36 | - * @param string $shareWith |
|
37 | - * @param string $name resource name (e.g. document.odt) |
|
38 | - * @param string $description share description (optional) |
|
39 | - * @param string $providerId resource UID on the provider side |
|
40 | - * @param string $owner provider specific UID of the user who owns the resource |
|
41 | - * @param string $ownerDisplayName display name of the user who shared the item |
|
42 | - * @param string $sharedBy provider specific UID of the user who shared the resource |
|
43 | - * @param string $sharedByDisplayName display name of the user who shared the resource |
|
44 | - * @param string $sharedSecret used to authenticate requests across servers |
|
45 | - * @param string $shareType ('group' or 'user' share) |
|
46 | - * @param $resourceType ('file', 'calendar',...) |
|
47 | - * @return ICloudFederationShare |
|
48 | - * |
|
49 | - * @since 14.0.0 |
|
50 | - */ |
|
51 | - public function getCloudFederationShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $sharedSecret, $shareType, $resourceType); |
|
33 | + /** |
|
34 | + * get a CloudFederationShare Object to prepare a share you want to send |
|
35 | + * |
|
36 | + * @param string $shareWith |
|
37 | + * @param string $name resource name (e.g. document.odt) |
|
38 | + * @param string $description share description (optional) |
|
39 | + * @param string $providerId resource UID on the provider side |
|
40 | + * @param string $owner provider specific UID of the user who owns the resource |
|
41 | + * @param string $ownerDisplayName display name of the user who shared the item |
|
42 | + * @param string $sharedBy provider specific UID of the user who shared the resource |
|
43 | + * @param string $sharedByDisplayName display name of the user who shared the resource |
|
44 | + * @param string $sharedSecret used to authenticate requests across servers |
|
45 | + * @param string $shareType ('group' or 'user' share) |
|
46 | + * @param $resourceType ('file', 'calendar',...) |
|
47 | + * @return ICloudFederationShare |
|
48 | + * |
|
49 | + * @since 14.0.0 |
|
50 | + */ |
|
51 | + public function getCloudFederationShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $sharedSecret, $shareType, $resourceType); |
|
52 | 52 | |
53 | - /** |
|
54 | - * get a Cloud FederationNotification object to prepare a notification you |
|
55 | - * want to send |
|
56 | - * |
|
57 | - * @return ICloudFederationNotification |
|
58 | - * |
|
59 | - * @since 14.0.0 |
|
60 | - */ |
|
61 | - public function getCloudFederationNotification(); |
|
53 | + /** |
|
54 | + * get a Cloud FederationNotification object to prepare a notification you |
|
55 | + * want to send |
|
56 | + * |
|
57 | + * @return ICloudFederationNotification |
|
58 | + * |
|
59 | + * @since 14.0.0 |
|
60 | + */ |
|
61 | + public function getCloudFederationNotification(); |
|
62 | 62 | } |
@@ -32,17 +32,17 @@ |
||
32 | 32 | */ |
33 | 33 | class AuthenticationFailedException extends HintException { |
34 | 34 | |
35 | - /** |
|
36 | - * BadRequestException constructor. |
|
37 | - * |
|
38 | - * @since 14.0.0 |
|
39 | - * |
|
40 | - */ |
|
41 | - public function __construct() { |
|
42 | - $l = \OC::$server->getL10N('federation'); |
|
43 | - $message = 'Authentication failed, wrong token or provider ID given'; |
|
44 | - $hint = $l->t('Authentication failed, wrong token or provider ID given'); |
|
45 | - parent::__construct($message, $hint); |
|
46 | - } |
|
35 | + /** |
|
36 | + * BadRequestException constructor. |
|
37 | + * |
|
38 | + * @since 14.0.0 |
|
39 | + * |
|
40 | + */ |
|
41 | + public function __construct() { |
|
42 | + $l = \OC::$server->getL10N('federation'); |
|
43 | + $message = 'Authentication failed, wrong token or provider ID given'; |
|
44 | + $hint = $l->t('Authentication failed, wrong token or provider ID given'); |
|
45 | + parent::__construct($message, $hint); |
|
46 | + } |
|
47 | 47 | |
48 | 48 | } |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | - /** @var $_ array */ |
|
3 | - /** @var $l \OCP\IL10N */ |
|
4 | - style('core', 'guest'); |
|
5 | - style('core', 'publicshareauth'); |
|
6 | - script('core', 'publicshareauth'); |
|
2 | + /** @var $_ array */ |
|
3 | + /** @var $l \OCP\IL10N */ |
|
4 | + style('core', 'guest'); |
|
5 | + style('core', 'publicshareauth'); |
|
6 | + script('core', 'publicshareauth'); |
|
7 | 7 | ?> |
8 | 8 | <form method="post"> |
9 | 9 | <fieldset class="warning"> |
@@ -45,69 +45,69 @@ |
||
45 | 45 | */ |
46 | 46 | interface ISession { |
47 | 47 | |
48 | - /** |
|
49 | - * Set a value in the session |
|
50 | - * |
|
51 | - * @param string $key |
|
52 | - * @param mixed $value |
|
53 | - * @since 6.0.0 |
|
54 | - */ |
|
55 | - public function set(string $key, $value); |
|
48 | + /** |
|
49 | + * Set a value in the session |
|
50 | + * |
|
51 | + * @param string $key |
|
52 | + * @param mixed $value |
|
53 | + * @since 6.0.0 |
|
54 | + */ |
|
55 | + public function set(string $key, $value); |
|
56 | 56 | |
57 | - /** |
|
58 | - * Get a value from the session |
|
59 | - * |
|
60 | - * @param string $key |
|
61 | - * @return mixed should return null if $key does not exist |
|
62 | - * @since 6.0.0 |
|
63 | - */ |
|
64 | - public function get(string $key); |
|
57 | + /** |
|
58 | + * Get a value from the session |
|
59 | + * |
|
60 | + * @param string $key |
|
61 | + * @return mixed should return null if $key does not exist |
|
62 | + * @since 6.0.0 |
|
63 | + */ |
|
64 | + public function get(string $key); |
|
65 | 65 | |
66 | - /** |
|
67 | - * Check if a named key exists in the session |
|
68 | - * |
|
69 | - * @param string $key |
|
70 | - * @return bool |
|
71 | - * @since 6.0.0 |
|
72 | - */ |
|
73 | - public function exists(string $key): bool; |
|
66 | + /** |
|
67 | + * Check if a named key exists in the session |
|
68 | + * |
|
69 | + * @param string $key |
|
70 | + * @return bool |
|
71 | + * @since 6.0.0 |
|
72 | + */ |
|
73 | + public function exists(string $key): bool; |
|
74 | 74 | |
75 | - /** |
|
76 | - * Remove a $key/$value pair from the session |
|
77 | - * |
|
78 | - * @param string $key |
|
79 | - * @since 6.0.0 |
|
80 | - */ |
|
81 | - public function remove(string $key); |
|
75 | + /** |
|
76 | + * Remove a $key/$value pair from the session |
|
77 | + * |
|
78 | + * @param string $key |
|
79 | + * @since 6.0.0 |
|
80 | + */ |
|
81 | + public function remove(string $key); |
|
82 | 82 | |
83 | - /** |
|
84 | - * Reset and recreate the session |
|
85 | - * @since 6.0.0 |
|
86 | - */ |
|
87 | - public function clear(); |
|
83 | + /** |
|
84 | + * Reset and recreate the session |
|
85 | + * @since 6.0.0 |
|
86 | + */ |
|
87 | + public function clear(); |
|
88 | 88 | |
89 | - /** |
|
90 | - * Close the session and release the lock |
|
91 | - * @since 7.0.0 |
|
92 | - */ |
|
93 | - public function close(); |
|
89 | + /** |
|
90 | + * Close the session and release the lock |
|
91 | + * @since 7.0.0 |
|
92 | + */ |
|
93 | + public function close(); |
|
94 | 94 | |
95 | - /** |
|
96 | - * Wrapper around session_regenerate_id |
|
97 | - * |
|
98 | - * @param bool $deleteOldSession Whether to delete the old associated session file or not. |
|
99 | - * @param bool $updateToken Wheater to update the associated auth token |
|
100 | - * @return void |
|
101 | - * @since 9.0.0, $updateToken added in 14.0.0 |
|
102 | - */ |
|
103 | - public function regenerateId(bool $deleteOldSession = true, bool $updateToken = false); |
|
95 | + /** |
|
96 | + * Wrapper around session_regenerate_id |
|
97 | + * |
|
98 | + * @param bool $deleteOldSession Whether to delete the old associated session file or not. |
|
99 | + * @param bool $updateToken Wheater to update the associated auth token |
|
100 | + * @return void |
|
101 | + * @since 9.0.0, $updateToken added in 14.0.0 |
|
102 | + */ |
|
103 | + public function regenerateId(bool $deleteOldSession = true, bool $updateToken = false); |
|
104 | 104 | |
105 | - /** |
|
106 | - * Wrapper around session_id |
|
107 | - * |
|
108 | - * @return string |
|
109 | - * @throws SessionNotAvailableException |
|
110 | - * @since 9.1.0 |
|
111 | - */ |
|
112 | - public function getId(): string; |
|
105 | + /** |
|
106 | + * Wrapper around session_id |
|
107 | + * |
|
108 | + * @return string |
|
109 | + * @throws SessionNotAvailableException |
|
110 | + * @since 9.1.0 |
|
111 | + */ |
|
112 | + public function getId(): string; |
|
113 | 113 | } |
@@ -42,10 +42,10 @@ |
||
42 | 42 | */ |
43 | 43 | class StrictInlineContentSecurityPolicy extends ContentSecurityPolicy { |
44 | 44 | |
45 | - /** |
|
46 | - * @since 14.0.0 |
|
47 | - */ |
|
48 | - public function __construct() { |
|
49 | - $this->inlineStyleAllowed = false; |
|
50 | - } |
|
45 | + /** |
|
46 | + * @since 14.0.0 |
|
47 | + */ |
|
48 | + public function __construct() { |
|
49 | + $this->inlineStyleAllowed = false; |
|
50 | + } |
|
51 | 51 | } |
@@ -30,19 +30,19 @@ |
||
30 | 30 | |
31 | 31 | class AddCleanupUpdaterBackupsJob implements IRepairStep { |
32 | 32 | |
33 | - /** @var IJobList */ |
|
34 | - protected $jobList; |
|
33 | + /** @var IJobList */ |
|
34 | + protected $jobList; |
|
35 | 35 | |
36 | - public function __construct(IJobList $jobList) { |
|
37 | - $this->jobList = $jobList; |
|
38 | - } |
|
36 | + public function __construct(IJobList $jobList) { |
|
37 | + $this->jobList = $jobList; |
|
38 | + } |
|
39 | 39 | |
40 | - public function getName() { |
|
41 | - return 'Queue a one-time job to cleanup old backups of the updater'; |
|
42 | - } |
|
40 | + public function getName() { |
|
41 | + return 'Queue a one-time job to cleanup old backups of the updater'; |
|
42 | + } |
|
43 | 43 | |
44 | - public function run(IOutput $output) { |
|
45 | - $this->jobList->add(BackgroundCleanupUpdaterBackupsJob::class); |
|
46 | - } |
|
44 | + public function run(IOutput $output) { |
|
45 | + $this->jobList->add(BackgroundCleanupUpdaterBackupsJob::class); |
|
46 | + } |
|
47 | 47 | } |
48 | 48 |
@@ -29,72 +29,72 @@ |
||
29 | 29 | |
30 | 30 | class PersonalSection implements IIconSection { |
31 | 31 | |
32 | - /** @var string */ |
|
33 | - protected $appName; |
|
32 | + /** @var string */ |
|
33 | + protected $appName; |
|
34 | 34 | |
35 | - /** @var IURLGenerator */ |
|
36 | - private $urlGenerator; |
|
35 | + /** @var IURLGenerator */ |
|
36 | + private $urlGenerator; |
|
37 | 37 | |
38 | - /** @var IL10N */ |
|
39 | - private $l; |
|
38 | + /** @var IL10N */ |
|
39 | + private $l; |
|
40 | 40 | |
41 | - /** |
|
42 | - * Personal Section constructor. |
|
43 | - * |
|
44 | - * @param string $appName |
|
45 | - * @param IURLGenerator $urlGenerator |
|
46 | - * @param IL10N $l |
|
47 | - */ |
|
48 | - public function __construct(string $appName, |
|
49 | - IURLGenerator $urlGenerator, |
|
50 | - IL10N $l) { |
|
51 | - $this->appName = $appName; |
|
52 | - $this->urlGenerator = $urlGenerator; |
|
53 | - $this->l = $l; |
|
54 | - } |
|
41 | + /** |
|
42 | + * Personal Section constructor. |
|
43 | + * |
|
44 | + * @param string $appName |
|
45 | + * @param IURLGenerator $urlGenerator |
|
46 | + * @param IL10N $l |
|
47 | + */ |
|
48 | + public function __construct(string $appName, |
|
49 | + IURLGenerator $urlGenerator, |
|
50 | + IL10N $l) { |
|
51 | + $this->appName = $appName; |
|
52 | + $this->urlGenerator = $urlGenerator; |
|
53 | + $this->l = $l; |
|
54 | + } |
|
55 | 55 | |
56 | - /** |
|
57 | - * returns the relative path to an 16*16 icon describing the section. |
|
58 | - * e.g. '/core/img/places/files.svg' |
|
59 | - * |
|
60 | - * @returns string |
|
61 | - * @since 13.0.0 |
|
62 | - */ |
|
63 | - public function getIcon() { |
|
64 | - return $this->urlGenerator->imagePath($this->appName, 'app-dark.svg'); |
|
65 | - } |
|
56 | + /** |
|
57 | + * returns the relative path to an 16*16 icon describing the section. |
|
58 | + * e.g. '/core/img/places/files.svg' |
|
59 | + * |
|
60 | + * @returns string |
|
61 | + * @since 13.0.0 |
|
62 | + */ |
|
63 | + public function getIcon() { |
|
64 | + return $this->urlGenerator->imagePath($this->appName, 'app-dark.svg'); |
|
65 | + } |
|
66 | 66 | |
67 | - /** |
|
68 | - * returns the ID of the section. It is supposed to be a lower case string, |
|
69 | - * e.g. 'ldap' |
|
70 | - * |
|
71 | - * @returns string |
|
72 | - * @since 9.1 |
|
73 | - */ |
|
74 | - public function getID() { |
|
75 | - return $this->appName; |
|
76 | - } |
|
67 | + /** |
|
68 | + * returns the ID of the section. It is supposed to be a lower case string, |
|
69 | + * e.g. 'ldap' |
|
70 | + * |
|
71 | + * @returns string |
|
72 | + * @since 9.1 |
|
73 | + */ |
|
74 | + public function getID() { |
|
75 | + return $this->appName; |
|
76 | + } |
|
77 | 77 | |
78 | - /** |
|
79 | - * returns the translated name as it should be displayed, e.g. 'LDAP / AD |
|
80 | - * integration'. Use the L10N service to translate it. |
|
81 | - * |
|
82 | - * @return string |
|
83 | - * @since 9.1 |
|
84 | - */ |
|
85 | - public function getName() { |
|
86 | - return $this->l->t('Accessibility'); |
|
87 | - } |
|
78 | + /** |
|
79 | + * returns the translated name as it should be displayed, e.g. 'LDAP / AD |
|
80 | + * integration'. Use the L10N service to translate it. |
|
81 | + * |
|
82 | + * @return string |
|
83 | + * @since 9.1 |
|
84 | + */ |
|
85 | + public function getName() { |
|
86 | + return $this->l->t('Accessibility'); |
|
87 | + } |
|
88 | 88 | |
89 | - /** |
|
90 | - * @return int whether the form should be rather on the top or bottom of |
|
91 | - * the settings navigation. The sections are arranged in ascending order of |
|
92 | - * the priority values. It is required to return a value between 0 and 99. |
|
93 | - * |
|
94 | - * E.g.: 70 |
|
95 | - * @since 9.1 |
|
96 | - */ |
|
97 | - public function getPriority() { |
|
98 | - return 15; |
|
99 | - } |
|
89 | + /** |
|
90 | + * @return int whether the form should be rather on the top or bottom of |
|
91 | + * the settings navigation. The sections are arranged in ascending order of |
|
92 | + * the priority values. It is required to return a value between 0 and 99. |
|
93 | + * |
|
94 | + * E.g.: 70 |
|
95 | + * @since 9.1 |
|
96 | + */ |
|
97 | + public function getPriority() { |
|
98 | + return 15; |
|
99 | + } |
|
100 | 100 | } |
@@ -31,50 +31,50 @@ |
||
31 | 31 | */ |
32 | 32 | interface IResource { |
33 | 33 | |
34 | - /** |
|
35 | - * get the resource id |
|
36 | - * |
|
37 | - * This id has to be unique within the backend |
|
38 | - * |
|
39 | - * @return string |
|
40 | - * @since 14.0.0 |
|
41 | - */ |
|
42 | - public function getId():string; |
|
34 | + /** |
|
35 | + * get the resource id |
|
36 | + * |
|
37 | + * This id has to be unique within the backend |
|
38 | + * |
|
39 | + * @return string |
|
40 | + * @since 14.0.0 |
|
41 | + */ |
|
42 | + public function getId():string; |
|
43 | 43 | |
44 | - /** |
|
45 | - * get the display name for a resource |
|
46 | - * |
|
47 | - * @return string |
|
48 | - * @since 14.0.0 |
|
49 | - */ |
|
50 | - public function getDisplayName():string; |
|
44 | + /** |
|
45 | + * get the display name for a resource |
|
46 | + * |
|
47 | + * @return string |
|
48 | + * @since 14.0.0 |
|
49 | + */ |
|
50 | + public function getDisplayName():string; |
|
51 | 51 | |
52 | - /** |
|
53 | - * Get a list of groupIds that are allowed to access this resource |
|
54 | - * |
|
55 | - * If an empty array is returned, no group restrictions are |
|
56 | - * applied. |
|
57 | - * |
|
58 | - * @return string[] |
|
59 | - * @since 14.0.0 |
|
60 | - */ |
|
61 | - public function getGroupRestrictions():array; |
|
52 | + /** |
|
53 | + * Get a list of groupIds that are allowed to access this resource |
|
54 | + * |
|
55 | + * If an empty array is returned, no group restrictions are |
|
56 | + * applied. |
|
57 | + * |
|
58 | + * @return string[] |
|
59 | + * @since 14.0.0 |
|
60 | + */ |
|
61 | + public function getGroupRestrictions():array; |
|
62 | 62 | |
63 | - /** |
|
64 | - * get email-address for resource |
|
65 | - * |
|
66 | - * The email address has to be globally unique |
|
67 | - * |
|
68 | - * @return string |
|
69 | - * @since 14.0.0 |
|
70 | - */ |
|
71 | - public function getEMail():string; |
|
63 | + /** |
|
64 | + * get email-address for resource |
|
65 | + * |
|
66 | + * The email address has to be globally unique |
|
67 | + * |
|
68 | + * @return string |
|
69 | + * @since 14.0.0 |
|
70 | + */ |
|
71 | + public function getEMail():string; |
|
72 | 72 | |
73 | - /** |
|
74 | - * Get corresponding backend object |
|
75 | - * |
|
76 | - * @return IBackend |
|
77 | - * @since 14.0.0 |
|
78 | - */ |
|
79 | - public function getBackend():IBackend; |
|
73 | + /** |
|
74 | + * Get corresponding backend object |
|
75 | + * |
|
76 | + * @return IBackend |
|
77 | + * @since 14.0.0 |
|
78 | + */ |
|
79 | + public function getBackend():IBackend; |
|
80 | 80 | } |
@@ -32,39 +32,39 @@ |
||
32 | 32 | */ |
33 | 33 | interface IBackend { |
34 | 34 | |
35 | - /** |
|
36 | - * get a list of all resources in this backend |
|
37 | - * |
|
38 | - * @throws BackendTemporarilyUnavailableException |
|
39 | - * @return IResource[] |
|
40 | - * @since 14.0.0 |
|
41 | - */ |
|
42 | - public function getAllResources():array; |
|
35 | + /** |
|
36 | + * get a list of all resources in this backend |
|
37 | + * |
|
38 | + * @throws BackendTemporarilyUnavailableException |
|
39 | + * @return IResource[] |
|
40 | + * @since 14.0.0 |
|
41 | + */ |
|
42 | + public function getAllResources():array; |
|
43 | 43 | |
44 | - /** |
|
45 | - * get a list of all resource identifiers in this backend |
|
46 | - * |
|
47 | - * @throws BackendTemporarilyUnavailableException |
|
48 | - * @return string[] |
|
49 | - * @since 14.0.0 |
|
50 | - */ |
|
51 | - public function listAllResources():array; |
|
44 | + /** |
|
45 | + * get a list of all resource identifiers in this backend |
|
46 | + * |
|
47 | + * @throws BackendTemporarilyUnavailableException |
|
48 | + * @return string[] |
|
49 | + * @since 14.0.0 |
|
50 | + */ |
|
51 | + public function listAllResources():array; |
|
52 | 52 | |
53 | - /** |
|
54 | - * get a resource by it's id |
|
55 | - * |
|
56 | - * @param string $id |
|
57 | - * @throws BackendTemporarilyUnavailableException |
|
58 | - * @return IResource|null |
|
59 | - * @since 14.0.0 |
|
60 | - */ |
|
61 | - public function getResource($id); |
|
53 | + /** |
|
54 | + * get a resource by it's id |
|
55 | + * |
|
56 | + * @param string $id |
|
57 | + * @throws BackendTemporarilyUnavailableException |
|
58 | + * @return IResource|null |
|
59 | + * @since 14.0.0 |
|
60 | + */ |
|
61 | + public function getResource($id); |
|
62 | 62 | |
63 | - /** |
|
64 | - * Get unique identifier of the backend |
|
65 | - * |
|
66 | - * @return string |
|
67 | - * @since 14.0.0 |
|
68 | - */ |
|
69 | - public function getBackendIdentifier():string; |
|
63 | + /** |
|
64 | + * Get unique identifier of the backend |
|
65 | + * |
|
66 | + * @return string |
|
67 | + * @since 14.0.0 |
|
68 | + */ |
|
69 | + public function getBackendIdentifier():string; |
|
70 | 70 | } |