Fix some static analisys reports.

This commit is contained in:
Matias De lellis
2023-06-14 22:47:41 -03:00
parent fe65a2f8ce
commit 449219339b
6 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ class Attach extends Entity implements JsonSerializable {
$this->deepLinkUrl = $deepLinkUrl;
}
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'note_id' => $this->noteId,

View File

@@ -13,7 +13,7 @@ class Color extends Entity implements JsonSerializable {
protected $color;
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'color' => $this->color

View File

@@ -65,7 +65,7 @@ class Note extends Entity implements JsonSerializable {
$this->attachts = $attachts;
}
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'title' => $this->title,

View File

@@ -30,7 +30,7 @@ class NoteShare extends Entity implements JsonSerializable {
$this->displayName = $displayName;
}
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'note_id' => $this->noteId,

View File

@@ -19,7 +19,7 @@ class NoteTag extends Entity implements JsonSerializable {
protected $tagId;
protected $userId;
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'noteid' => $this->noteId,

View File

@@ -16,7 +16,7 @@ class Tag extends Entity implements JsonSerializable {
protected $userId;
protected $name;
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'userid' => $this->userId,