@@ -39,51 +39,51 @@ |
||
| 39 | 39 | |
| 40 | 40 | interface ICloudFederationProvider { |
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * get the name of the share type, handled by this provider |
|
| 44 | - * |
|
| 45 | - * @return string |
|
| 46 | - * |
|
| 47 | - * @since 14.0.0 |
|
| 48 | - */ |
|
| 49 | - public function getShareType(); |
|
| 42 | + /** |
|
| 43 | + * get the name of the share type, handled by this provider |
|
| 44 | + * |
|
| 45 | + * @return string |
|
| 46 | + * |
|
| 47 | + * @since 14.0.0 |
|
| 48 | + */ |
|
| 49 | + public function getShareType(); |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * share received from another server |
|
| 53 | - * |
|
| 54 | - * @param ICloudFederationShare $share |
|
| 55 | - * @return string provider specific unique ID of the share |
|
| 56 | - * |
|
| 57 | - * @throws ProviderCouldNotAddShareException |
|
| 58 | - * |
|
| 59 | - * @since 14.0.0 |
|
| 60 | - */ |
|
| 61 | - public function shareReceived(ICloudFederationShare $share); |
|
| 51 | + /** |
|
| 52 | + * share received from another server |
|
| 53 | + * |
|
| 54 | + * @param ICloudFederationShare $share |
|
| 55 | + * @return string provider specific unique ID of the share |
|
| 56 | + * |
|
| 57 | + * @throws ProviderCouldNotAddShareException |
|
| 58 | + * |
|
| 59 | + * @since 14.0.0 |
|
| 60 | + */ |
|
| 61 | + public function shareReceived(ICloudFederationShare $share); |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * notification received from another server |
|
| 65 | - * |
|
| 66 | - * @param string $notificationType (e.g SHARE_ACCEPTED) |
|
| 67 | - * @param string $providerId share ID |
|
| 68 | - * @param array $notification provider specific notification |
|
| 69 | - * @return array $data send back to sender |
|
| 70 | - * |
|
| 71 | - * @throws ShareNotFound |
|
| 72 | - * @throws ActionNotSupportedException |
|
| 73 | - * @throws BadRequestException |
|
| 74 | - * @throws AuthenticationFailedException |
|
| 75 | - * |
|
| 76 | - * @since 14.0.0 |
|
| 77 | - */ |
|
| 78 | - public function notificationReceived($notificationType, $providerId, array $notification); |
|
| 63 | + /** |
|
| 64 | + * notification received from another server |
|
| 65 | + * |
|
| 66 | + * @param string $notificationType (e.g SHARE_ACCEPTED) |
|
| 67 | + * @param string $providerId share ID |
|
| 68 | + * @param array $notification provider specific notification |
|
| 69 | + * @return array $data send back to sender |
|
| 70 | + * |
|
| 71 | + * @throws ShareNotFound |
|
| 72 | + * @throws ActionNotSupportedException |
|
| 73 | + * @throws BadRequestException |
|
| 74 | + * @throws AuthenticationFailedException |
|
| 75 | + * |
|
| 76 | + * @since 14.0.0 |
|
| 77 | + */ |
|
| 78 | + public function notificationReceived($notificationType, $providerId, array $notification); |
|
| 79 | 79 | |
| 80 | - /** |
|
| 81 | - * get the supported share types, e.g. "user", "group", etc. |
|
| 82 | - * |
|
| 83 | - * @return array |
|
| 84 | - * |
|
| 85 | - * @since 14.0.0 |
|
| 86 | - */ |
|
| 87 | - public function getSupportedShareTypes(); |
|
| 80 | + /** |
|
| 81 | + * get the supported share types, e.g. "user", "group", etc. |
|
| 82 | + * |
|
| 83 | + * @return array |
|
| 84 | + * |
|
| 85 | + * @since 14.0.0 |
|
| 86 | + */ |
|
| 87 | + public function getSupportedShareTypes(); |
|
| 88 | 88 | |
| 89 | 89 | } |
@@ -22,15 +22,15 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | 24 | return [ |
| 25 | - 'routes' => [ |
|
| 26 | - ['name' => 'birthday_calendar#enable', 'url' => '/enableBirthdayCalendar', 'verb' => 'POST'], |
|
| 27 | - ['name' => 'birthday_calendar#disable', 'url' => '/disableBirthdayCalendar', 'verb' => 'POST'], |
|
| 28 | - ['name' => 'invitation_response#accept', 'url' => '/invitation/accept/{token}', 'verb' => 'GET'], |
|
| 29 | - ['name' => 'invitation_response#decline', 'url' => '/invitation/decline/{token}', 'verb' => 'GET'], |
|
| 30 | - ['name' => 'invitation_response#options', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'GET'], |
|
| 31 | - ['name' => 'invitation_response#processMoreOptionsResult', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'POST'] |
|
| 32 | - ], |
|
| 33 | - 'ocs' => [ |
|
| 34 | - ['name' => 'direct#getUrl', 'url' => '/api/v1/direct', 'verb' => 'POST'], |
|
| 35 | - ], |
|
| 25 | + 'routes' => [ |
|
| 26 | + ['name' => 'birthday_calendar#enable', 'url' => '/enableBirthdayCalendar', 'verb' => 'POST'], |
|
| 27 | + ['name' => 'birthday_calendar#disable', 'url' => '/disableBirthdayCalendar', 'verb' => 'POST'], |
|
| 28 | + ['name' => 'invitation_response#accept', 'url' => '/invitation/accept/{token}', 'verb' => 'GET'], |
|
| 29 | + ['name' => 'invitation_response#decline', 'url' => '/invitation/decline/{token}', 'verb' => 'GET'], |
|
| 30 | + ['name' => 'invitation_response#options', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'GET'], |
|
| 31 | + ['name' => 'invitation_response#processMoreOptionsResult', 'url' => '/invitation/moreOptions/{token}', 'verb' => 'POST'] |
|
| 32 | + ], |
|
| 33 | + 'ocs' => [ |
|
| 34 | + ['name' => 'direct#getUrl', 'url' => '/api/v1/direct', 'verb' => 'POST'], |
|
| 35 | + ], |
|
| 36 | 36 | ]; |
@@ -43,77 +43,77 @@ |
||
| 43 | 43 | * @since 6.0.0 |
| 44 | 44 | */ |
| 45 | 45 | interface IL10N { |
| 46 | - /** |
|
| 47 | - * Translating |
|
| 48 | - * @param string $text The text we need a translation for |
|
| 49 | - * @param array|string $parameters default:array() Parameters for sprintf |
|
| 50 | - * @return string Translation or the same text |
|
| 51 | - * |
|
| 52 | - * Returns the translation. If no translation is found, $text will be |
|
| 53 | - * returned. |
|
| 54 | - * @since 6.0.0 |
|
| 55 | - */ |
|
| 56 | - public function t(string $text, $parameters = []): string; |
|
| 46 | + /** |
|
| 47 | + * Translating |
|
| 48 | + * @param string $text The text we need a translation for |
|
| 49 | + * @param array|string $parameters default:array() Parameters for sprintf |
|
| 50 | + * @return string Translation or the same text |
|
| 51 | + * |
|
| 52 | + * Returns the translation. If no translation is found, $text will be |
|
| 53 | + * returned. |
|
| 54 | + * @since 6.0.0 |
|
| 55 | + */ |
|
| 56 | + public function t(string $text, $parameters = []): string; |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * Translating |
|
| 60 | - * @param string $text_singular the string to translate for exactly one object |
|
| 61 | - * @param string $text_plural the string to translate for n objects |
|
| 62 | - * @param integer $count Number of objects |
|
| 63 | - * @param array $parameters default:array() Parameters for sprintf |
|
| 64 | - * @return string Translation or the same text |
|
| 65 | - * |
|
| 66 | - * Returns the translation. If no translation is found, $text will be |
|
| 67 | - * returned. %n will be replaced with the number of objects. |
|
| 68 | - * |
|
| 69 | - * The correct plural is determined by the plural_forms-function |
|
| 70 | - * provided by the po file. |
|
| 71 | - * @since 6.0.0 |
|
| 72 | - * |
|
| 73 | - */ |
|
| 74 | - public function n(string $text_singular, string $text_plural, int $count, array $parameters = []): string; |
|
| 58 | + /** |
|
| 59 | + * Translating |
|
| 60 | + * @param string $text_singular the string to translate for exactly one object |
|
| 61 | + * @param string $text_plural the string to translate for n objects |
|
| 62 | + * @param integer $count Number of objects |
|
| 63 | + * @param array $parameters default:array() Parameters for sprintf |
|
| 64 | + * @return string Translation or the same text |
|
| 65 | + * |
|
| 66 | + * Returns the translation. If no translation is found, $text will be |
|
| 67 | + * returned. %n will be replaced with the number of objects. |
|
| 68 | + * |
|
| 69 | + * The correct plural is determined by the plural_forms-function |
|
| 70 | + * provided by the po file. |
|
| 71 | + * @since 6.0.0 |
|
| 72 | + * |
|
| 73 | + */ |
|
| 74 | + public function n(string $text_singular, string $text_plural, int $count, array $parameters = []): string; |
|
| 75 | 75 | |
| 76 | - /** |
|
| 77 | - * Localization |
|
| 78 | - * @param string $type Type of localization |
|
| 79 | - * @param \DateTime|int|string $data parameters for this localization |
|
| 80 | - * @param array $options currently supports following options: |
|
| 81 | - * - 'width': handed into \Punic\Calendar::formatDate as second parameter |
|
| 82 | - * @return string|int|false |
|
| 83 | - * |
|
| 84 | - * Returns the localized data. |
|
| 85 | - * |
|
| 86 | - * Implemented types: |
|
| 87 | - * - date |
|
| 88 | - * - Creates a date |
|
| 89 | - * - l10n-field: date |
|
| 90 | - * - params: timestamp (int/string) |
|
| 91 | - * - datetime |
|
| 92 | - * - Creates date and time |
|
| 93 | - * - l10n-field: datetime |
|
| 94 | - * - params: timestamp (int/string) |
|
| 95 | - * - time |
|
| 96 | - * - Creates a time |
|
| 97 | - * - l10n-field: time |
|
| 98 | - * - params: timestamp (int/string) |
|
| 99 | - * @since 6.0.0 - parameter $options was added in 8.0.0 |
|
| 100 | - */ |
|
| 101 | - public function l(string $type, $data, array $options = []); |
|
| 76 | + /** |
|
| 77 | + * Localization |
|
| 78 | + * @param string $type Type of localization |
|
| 79 | + * @param \DateTime|int|string $data parameters for this localization |
|
| 80 | + * @param array $options currently supports following options: |
|
| 81 | + * - 'width': handed into \Punic\Calendar::formatDate as second parameter |
|
| 82 | + * @return string|int|false |
|
| 83 | + * |
|
| 84 | + * Returns the localized data. |
|
| 85 | + * |
|
| 86 | + * Implemented types: |
|
| 87 | + * - date |
|
| 88 | + * - Creates a date |
|
| 89 | + * - l10n-field: date |
|
| 90 | + * - params: timestamp (int/string) |
|
| 91 | + * - datetime |
|
| 92 | + * - Creates date and time |
|
| 93 | + * - l10n-field: datetime |
|
| 94 | + * - params: timestamp (int/string) |
|
| 95 | + * - time |
|
| 96 | + * - Creates a time |
|
| 97 | + * - l10n-field: time |
|
| 98 | + * - params: timestamp (int/string) |
|
| 99 | + * @since 6.0.0 - parameter $options was added in 8.0.0 |
|
| 100 | + */ |
|
| 101 | + public function l(string $type, $data, array $options = []); |
|
| 102 | 102 | |
| 103 | 103 | |
| 104 | - /** |
|
| 105 | - * The code (en, de, ...) of the language that is used for this IL10N object |
|
| 106 | - * |
|
| 107 | - * @return string language |
|
| 108 | - * @since 7.0.0 |
|
| 109 | - */ |
|
| 110 | - public function getLanguageCode(): string ; |
|
| 104 | + /** |
|
| 105 | + * The code (en, de, ...) of the language that is used for this IL10N object |
|
| 106 | + * |
|
| 107 | + * @return string language |
|
| 108 | + * @since 7.0.0 |
|
| 109 | + */ |
|
| 110 | + public function getLanguageCode(): string ; |
|
| 111 | 111 | |
| 112 | - /** |
|
| 113 | - * * The code (en_US, fr_CA, ...) of the locale that is used for this IL10N object |
|
| 114 | - * |
|
| 115 | - * @return string locale |
|
| 116 | - * @since 14.0.0 |
|
| 117 | - */ |
|
| 118 | - public function getLocaleCode(): string; |
|
| 112 | + /** |
|
| 113 | + * * The code (en_US, fr_CA, ...) of the locale that is used for this IL10N object |
|
| 114 | + * |
|
| 115 | + * @return string locale |
|
| 116 | + * @since 14.0.0 |
|
| 117 | + */ |
|
| 118 | + public function getLocaleCode(): string; |
|
| 119 | 119 | } |
@@ -40,22 +40,22 @@ |
||
| 40 | 40 | * @method void setData(string $data) |
| 41 | 41 | */ |
| 42 | 42 | class ChangesResult extends Entity { |
| 43 | - /** @var string */ |
|
| 44 | - protected $version = ''; |
|
| 43 | + /** @var string */ |
|
| 44 | + protected $version = ''; |
|
| 45 | 45 | |
| 46 | - /** @var string */ |
|
| 47 | - protected $etag = ''; |
|
| 46 | + /** @var string */ |
|
| 47 | + protected $etag = ''; |
|
| 48 | 48 | |
| 49 | - /** @var int */ |
|
| 50 | - protected $lastCheck = 0; |
|
| 49 | + /** @var int */ |
|
| 50 | + protected $lastCheck = 0; |
|
| 51 | 51 | |
| 52 | - /** @var string */ |
|
| 53 | - protected $data = ''; |
|
| 52 | + /** @var string */ |
|
| 53 | + protected $data = ''; |
|
| 54 | 54 | |
| 55 | - public function __construct() { |
|
| 56 | - $this->addType('version', 'string'); |
|
| 57 | - $this->addType('etag', 'string'); |
|
| 58 | - $this->addType('lastCheck', 'int'); |
|
| 59 | - $this->addType('data', 'string'); |
|
| 60 | - } |
|
| 55 | + public function __construct() { |
|
| 56 | + $this->addType('version', 'string'); |
|
| 57 | + $this->addType('etag', 'string'); |
|
| 58 | + $this->addType('lastCheck', 'int'); |
|
| 59 | + $this->addType('data', 'string'); |
|
| 60 | + } |
|
| 61 | 61 | } |
@@ -27,46 +27,46 @@ |
||
| 27 | 27 | use SearchDAV\Query\Query; |
| 28 | 28 | |
| 29 | 29 | class LazySearchBackend implements ISearchBackend { |
| 30 | - /** |
|
| 31 | - * @var ISearchBackend $backend |
|
| 32 | - */ |
|
| 33 | - private $backend = null; |
|
| 30 | + /** |
|
| 31 | + * @var ISearchBackend $backend |
|
| 32 | + */ |
|
| 33 | + private $backend = null; |
|
| 34 | 34 | |
| 35 | - public function setBackend(ISearchBackend $backend) { |
|
| 36 | - $this->backend = $backend; |
|
| 37 | - } |
|
| 35 | + public function setBackend(ISearchBackend $backend) { |
|
| 36 | + $this->backend = $backend; |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - public function getArbiterPath() { |
|
| 40 | - if ($this->backend) { |
|
| 41 | - return $this->backend->getArbiterPath(); |
|
| 42 | - } else { |
|
| 43 | - return ''; |
|
| 44 | - } |
|
| 45 | - } |
|
| 39 | + public function getArbiterPath() { |
|
| 40 | + if ($this->backend) { |
|
| 41 | + return $this->backend->getArbiterPath(); |
|
| 42 | + } else { |
|
| 43 | + return ''; |
|
| 44 | + } |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | - public function isValidScope($href, $depth, $path) { |
|
| 48 | - if ($this->backend) { |
|
| 49 | - return $this->backend->getArbiterPath(); |
|
| 50 | - } else { |
|
| 51 | - return false; |
|
| 52 | - } |
|
| 53 | - } |
|
| 47 | + public function isValidScope($href, $depth, $path) { |
|
| 48 | + if ($this->backend) { |
|
| 49 | + return $this->backend->getArbiterPath(); |
|
| 50 | + } else { |
|
| 51 | + return false; |
|
| 52 | + } |
|
| 53 | + } |
|
| 54 | 54 | |
| 55 | - public function getPropertyDefinitionsForScope($href, $path) { |
|
| 56 | - if ($this->backend) { |
|
| 57 | - return $this->backend->getPropertyDefinitionsForScope($href, $path); |
|
| 58 | - } else { |
|
| 59 | - return []; |
|
| 60 | - } |
|
| 61 | - } |
|
| 55 | + public function getPropertyDefinitionsForScope($href, $path) { |
|
| 56 | + if ($this->backend) { |
|
| 57 | + return $this->backend->getPropertyDefinitionsForScope($href, $path); |
|
| 58 | + } else { |
|
| 59 | + return []; |
|
| 60 | + } |
|
| 61 | + } |
|
| 62 | 62 | |
| 63 | - public function search(Query $query) { |
|
| 64 | - if ($this->backend) { |
|
| 65 | - return $this->backend->search($query); |
|
| 66 | - } else { |
|
| 67 | - return []; |
|
| 68 | - } |
|
| 69 | - } |
|
| 63 | + public function search(Query $query) { |
|
| 64 | + if ($this->backend) { |
|
| 65 | + return $this->backend->search($query); |
|
| 66 | + } else { |
|
| 67 | + return []; |
|
| 68 | + } |
|
| 69 | + } |
|
| 70 | 70 | |
| 71 | 71 | |
| 72 | 72 | } |
@@ -42,10 +42,10 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | class StrictEvalContentSecurityPolicy extends ContentSecurityPolicy { |
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * @since 14.0.0 |
|
| 47 | - */ |
|
| 48 | - public function __construct() { |
|
| 49 | - $this->evalScriptAllowed = false; |
|
| 50 | - } |
|
| 45 | + /** |
|
| 46 | + * @since 14.0.0 |
|
| 47 | + */ |
|
| 48 | + public function __construct() { |
|
| 49 | + $this->evalScriptAllowed = false; |
|
| 50 | + } |
|
| 51 | 51 | } |
@@ -30,24 +30,24 @@ |
||
| 30 | 30 | |
| 31 | 31 | class CleanupInvitationTokenJob extends TimedJob { |
| 32 | 32 | |
| 33 | - /** @var IDBConnection */ |
|
| 34 | - private $db; |
|
| 35 | - |
|
| 36 | - /** @var ITimeFactory */ |
|
| 37 | - private $timeFactory; |
|
| 38 | - |
|
| 39 | - public function __construct(IDBConnection $db, ITimeFactory $timeFactory) { |
|
| 40 | - $this->db = $db; |
|
| 41 | - $this->timeFactory = $timeFactory; |
|
| 42 | - |
|
| 43 | - $this->setInterval(60 * 60 * 24); |
|
| 44 | - } |
|
| 45 | - |
|
| 46 | - public function run($argument) { |
|
| 47 | - $query = $this->db->getQueryBuilder(); |
|
| 48 | - $query->delete('calendar_invitations') |
|
| 49 | - ->where($query->expr()->lt('expiration', |
|
| 50 | - $query->createNamedParameter($this->timeFactory->getTime()))) |
|
| 51 | - ->execute(); |
|
| 52 | - } |
|
| 33 | + /** @var IDBConnection */ |
|
| 34 | + private $db; |
|
| 35 | + |
|
| 36 | + /** @var ITimeFactory */ |
|
| 37 | + private $timeFactory; |
|
| 38 | + |
|
| 39 | + public function __construct(IDBConnection $db, ITimeFactory $timeFactory) { |
|
| 40 | + $this->db = $db; |
|
| 41 | + $this->timeFactory = $timeFactory; |
|
| 42 | + |
|
| 43 | + $this->setInterval(60 * 60 * 24); |
|
| 44 | + } |
|
| 45 | + |
|
| 46 | + public function run($argument) { |
|
| 47 | + $query = $this->db->getQueryBuilder(); |
|
| 48 | + $query->delete('calendar_invitations') |
|
| 49 | + ->where($query->expr()->lt('expiration', |
|
| 50 | + $query->createNamedParameter($this->timeFactory->getTime()))) |
|
| 51 | + ->execute(); |
|
| 52 | + } |
|
| 53 | 53 | } |
@@ -44,31 +44,31 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | interface ILanguageIterator extends \Iterator { |
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * Return the current element |
|
| 49 | - * |
|
| 50 | - * @since 14.0.0 |
|
| 51 | - */ |
|
| 52 | - public function current(): string; |
|
| 47 | + /** |
|
| 48 | + * Return the current element |
|
| 49 | + * |
|
| 50 | + * @since 14.0.0 |
|
| 51 | + */ |
|
| 52 | + public function current(): string; |
|
| 53 | 53 | |
| 54 | - /** |
|
| 55 | - * Move forward to next element |
|
| 56 | - * |
|
| 57 | - * @since 14.0.0 |
|
| 58 | - */ |
|
| 59 | - public function next(); |
|
| 54 | + /** |
|
| 55 | + * Move forward to next element |
|
| 56 | + * |
|
| 57 | + * @since 14.0.0 |
|
| 58 | + */ |
|
| 59 | + public function next(); |
|
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * Return the key of the current element |
|
| 63 | - * |
|
| 64 | - * @since 14.0.0 |
|
| 65 | - */ |
|
| 66 | - public function key():int; |
|
| 61 | + /** |
|
| 62 | + * Return the key of the current element |
|
| 63 | + * |
|
| 64 | + * @since 14.0.0 |
|
| 65 | + */ |
|
| 66 | + public function key():int; |
|
| 67 | 67 | |
| 68 | - /** |
|
| 69 | - * Checks if current position is valid |
|
| 70 | - * |
|
| 71 | - * @since 14.0.0 |
|
| 72 | - */ |
|
| 73 | - public function valid():bool; |
|
| 68 | + /** |
|
| 69 | + * Checks if current position is valid |
|
| 70 | + * |
|
| 71 | + * @since 14.0.0 |
|
| 72 | + */ |
|
| 73 | + public function valid():bool; |
|
| 74 | 74 | } |
@@ -30,72 +30,72 @@ |
||
| 30 | 30 | |
| 31 | 31 | class FileChanges implements IFilter { |
| 32 | 32 | |
| 33 | - /** @var IL10N */ |
|
| 34 | - protected $l; |
|
| 33 | + /** @var IL10N */ |
|
| 34 | + protected $l; |
|
| 35 | 35 | |
| 36 | - /** @var IURLGenerator */ |
|
| 37 | - protected $url; |
|
| 36 | + /** @var IURLGenerator */ |
|
| 37 | + protected $url; |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @param IL10N $l |
|
| 41 | - * @param IURLGenerator $url |
|
| 42 | - */ |
|
| 43 | - public function __construct(IL10N $l, IURLGenerator $url) { |
|
| 44 | - $this->l = $l; |
|
| 45 | - $this->url = $url; |
|
| 46 | - } |
|
| 39 | + /** |
|
| 40 | + * @param IL10N $l |
|
| 41 | + * @param IURLGenerator $url |
|
| 42 | + */ |
|
| 43 | + public function __construct(IL10N $l, IURLGenerator $url) { |
|
| 44 | + $this->l = $l; |
|
| 45 | + $this->url = $url; |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * @return string Lowercase a-z only identifier |
|
| 50 | - * @since 11.0.0 |
|
| 51 | - */ |
|
| 52 | - public function getIdentifier() { |
|
| 53 | - return 'files'; |
|
| 54 | - } |
|
| 48 | + /** |
|
| 49 | + * @return string Lowercase a-z only identifier |
|
| 50 | + * @since 11.0.0 |
|
| 51 | + */ |
|
| 52 | + public function getIdentifier() { |
|
| 53 | + return 'files'; |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * @return string A translated string |
|
| 58 | - * @since 11.0.0 |
|
| 59 | - */ |
|
| 60 | - public function getName() { |
|
| 61 | - return $this->l->t('File changes'); |
|
| 62 | - } |
|
| 56 | + /** |
|
| 57 | + * @return string A translated string |
|
| 58 | + * @since 11.0.0 |
|
| 59 | + */ |
|
| 60 | + public function getName() { |
|
| 61 | + return $this->l->t('File changes'); |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * @return int |
|
| 66 | - * @since 11.0.0 |
|
| 67 | - */ |
|
| 68 | - public function getPriority() { |
|
| 69 | - return 30; |
|
| 70 | - } |
|
| 64 | + /** |
|
| 65 | + * @return int |
|
| 66 | + * @since 11.0.0 |
|
| 67 | + */ |
|
| 68 | + public function getPriority() { |
|
| 69 | + return 30; |
|
| 70 | + } |
|
| 71 | 71 | |
| 72 | - /** |
|
| 73 | - * @return string Full URL to an icon, empty string when none is given |
|
| 74 | - * @since 11.0.0 |
|
| 75 | - */ |
|
| 76 | - public function getIcon() { |
|
| 77 | - return $this->url->getAbsoluteURL($this->url->imagePath('core', 'places/files.svg')); |
|
| 78 | - } |
|
| 72 | + /** |
|
| 73 | + * @return string Full URL to an icon, empty string when none is given |
|
| 74 | + * @since 11.0.0 |
|
| 75 | + */ |
|
| 76 | + public function getIcon() { |
|
| 77 | + return $this->url->getAbsoluteURL($this->url->imagePath('core', 'places/files.svg')); |
|
| 78 | + } |
|
| 79 | 79 | |
| 80 | - /** |
|
| 81 | - * @param string[] $types |
|
| 82 | - * @return string[] An array of allowed apps from which activities should be displayed |
|
| 83 | - * @since 11.0.0 |
|
| 84 | - */ |
|
| 85 | - public function filterTypes(array $types) { |
|
| 86 | - return array_intersect([ |
|
| 87 | - 'file_created', |
|
| 88 | - 'file_changed', |
|
| 89 | - 'file_deleted', |
|
| 90 | - 'file_restored', |
|
| 91 | - ], $types); |
|
| 92 | - } |
|
| 80 | + /** |
|
| 81 | + * @param string[] $types |
|
| 82 | + * @return string[] An array of allowed apps from which activities should be displayed |
|
| 83 | + * @since 11.0.0 |
|
| 84 | + */ |
|
| 85 | + public function filterTypes(array $types) { |
|
| 86 | + return array_intersect([ |
|
| 87 | + 'file_created', |
|
| 88 | + 'file_changed', |
|
| 89 | + 'file_deleted', |
|
| 90 | + 'file_restored', |
|
| 91 | + ], $types); |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | - /** |
|
| 95 | - * @return string[] An array of allowed apps from which activities should be displayed |
|
| 96 | - * @since 11.0.0 |
|
| 97 | - */ |
|
| 98 | - public function allowedApps() { |
|
| 99 | - return ['files']; |
|
| 100 | - } |
|
| 94 | + /** |
|
| 95 | + * @return string[] An array of allowed apps from which activities should be displayed |
|
| 96 | + * @since 11.0.0 |
|
| 97 | + */ |
|
| 98 | + public function allowedApps() { |
|
| 99 | + return ['files']; |
|
| 100 | + } |
|
| 101 | 101 | } |