More return types..

This commit is contained in:
Matias De lellis
2021-09-19 22:46:26 -03:00
parent e0d29ecc88
commit 90436bca87
3 changed files with 8 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ class Version000204Date20200530211356 extends SimpleMigrationStep {
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options * @param array $options
*
* @return void
*/ */
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
} }
@@ -157,6 +159,8 @@ class Version000204Date20200530211356 extends SimpleMigrationStep {
* @param IOutput $output * @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options * @param array $options
*
* @return void
*/ */
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
} }

View File

@@ -401,6 +401,8 @@ class NoteService {
/** /**
* @param string $userId * @param string $userId
* @param int $id * @param int $id
*
* @return void
*/ */
public function destroy (string $userId, int $id) { public function destroy (string $userId, int $id) {
// Get Note and Color // Get Note and Color

View File

@@ -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); 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); $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); 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); $this->config->setUserValue($this->userId, Application::APP_ID, self::ATTACHMENTS_FOLDER_KEY, $folder);
} }