diff options
Diffstat (limited to 'lib/Activity/Setting.php')
-rw-r--r-- | lib/Activity/Setting.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/Activity/Setting.php b/lib/Activity/Setting.php index 3c3f727..5c6d84b 100644 --- a/lib/Activity/Setting.php +++ b/lib/Activity/Setting.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com> * @@ -41,7 +43,7 @@ class Setting implements ISetting { * @return string Lowercase a-z and underscore only identifier * @since 11.0.0 */ - public function getIdentifier() { + public function getIdentifier(): string { return 'file_downloaded'; } @@ -49,7 +51,7 @@ class Setting implements ISetting { * @return string A translated string * @since 11.0.0 */ - public function getName() { + public function getName(): string { return $this->l->t('A local shared file or folder was <strong>downloaded</strong>'); } @@ -59,7 +61,7 @@ class Setting implements ISetting { * priority values. It is required to return a value between 0 and 100. * @since 11.0.0 */ - public function getPriority() { + public function getPriority(): int { return 21; } @@ -67,7 +69,7 @@ class Setting implements ISetting { * @return bool True when the option can be changed for the stream * @since 11.0.0 */ - public function canChangeStream() { + public function canChangeStream(): bool { return true; } @@ -75,7 +77,7 @@ class Setting implements ISetting { * @return bool True when the option can be changed for the stream * @since 11.0.0 */ - public function isDefaultEnabledStream() { + public function isDefaultEnabledStream(): bool { return true; } @@ -83,7 +85,7 @@ class Setting implements ISetting { * @return bool True when the option can be changed for the mail * @since 11.0.0 */ - public function canChangeMail() { + public function canChangeMail(): bool { return true; } @@ -91,7 +93,7 @@ class Setting implements ISetting { * @return bool True when the option can be changed for the stream * @since 11.0.0 */ - public function isDefaultEnabledMail() { + public function isDefaultEnabledMail(): bool { return false; } } |