From 90436bca872156f1fbbf3ba17036981da18e63f7 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Sun, 19 Sep 2021 22:46:26 -0300 Subject: [PATCH] More return types.. --- lib/Migration/Version000204Date20200530211356.php | 4 ++++ lib/Service/NoteService.php | 2 ++ lib/Service/SettingsService.php | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/Migration/Version000204Date20200530211356.php b/lib/Migration/Version000204Date20200530211356.php index f2a54cb..c2fe561 100644 --- a/lib/Migration/Version000204Date20200530211356.php +++ b/lib/Migration/Version000204Date20200530211356.php @@ -18,6 +18,8 @@ class Version000204Date20200530211356 extends SimpleMigrationStep { * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options + * + * @return void */ public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { } @@ -157,6 +159,8 @@ class Version000204Date20200530211356 extends SimpleMigrationStep { * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options + * + * @return void */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { } diff --git a/lib/Service/NoteService.php b/lib/Service/NoteService.php index b57d758..0a8f57f 100644 --- a/lib/Service/NoteService.php +++ b/lib/Service/NoteService.php @@ -401,6 +401,8 @@ class NoteService { /** * @param string $userId * @param int $id + * + * @return void */ public function destroy (string $userId, int $id) { // Get Note and Color diff --git a/lib/Service/SettingsService.php b/lib/Service/SettingsService.php index 763847e..9fe004e 100644 --- a/lib/Service/SettingsService.php +++ b/lib/Service/SettingsService.php @@ -61,7 +61,7 @@ class SettingsService { return $this->config->getUserValue($this->userId, Application::APP_ID, self::COLOR_FOR_NEW_NOTES_KEY, self::DEFAULT_COLOR_FOR_NEW_NOTES); } - public function setColorForNewNotes(string $color) { + public function setColorForNewNotes(string $color): void { $this->config->setUserValue($this->userId, Application::APP_ID, self::COLOR_FOR_NEW_NOTES_KEY, $color); } @@ -69,7 +69,7 @@ class SettingsService { return $this->config->getUserValue($this->userId, Application::APP_ID, self::ATTACHMENTS_FOLDER_KEY, self::DEFAULT_ATTACHMENTS_FOLDER); } - public function setAttachmentsFolder(string $folder) { + public function setAttachmentsFolder(string $folder): void { $this->config->setUserValue($this->userId, Application::APP_ID, self::ATTACHMENTS_FOLDER_KEY, $folder); }