mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
More return types..
This commit is contained in:
@@ -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) {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user