mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Fix some static analisys reports.
This commit is contained in:
@@ -38,7 +38,7 @@ class Attach extends Entity implements JsonSerializable {
|
|||||||
$this->deepLinkUrl = $deepLinkUrl;
|
$this->deepLinkUrl = $deepLinkUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize(): array {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'note_id' => $this->noteId,
|
'note_id' => $this->noteId,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Color extends Entity implements JsonSerializable {
|
|||||||
|
|
||||||
protected $color;
|
protected $color;
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize(): array {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'color' => $this->color
|
'color' => $this->color
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class Note extends Entity implements JsonSerializable {
|
|||||||
$this->attachts = $attachts;
|
$this->attachts = $attachts;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize(): array {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'title' => $this->title,
|
'title' => $this->title,
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class NoteShare extends Entity implements JsonSerializable {
|
|||||||
$this->displayName = $displayName;
|
$this->displayName = $displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize(): array {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'note_id' => $this->noteId,
|
'note_id' => $this->noteId,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class NoteTag extends Entity implements JsonSerializable {
|
|||||||
protected $tagId;
|
protected $tagId;
|
||||||
protected $userId;
|
protected $userId;
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize(): array {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'noteid' => $this->noteId,
|
'noteid' => $this->noteId,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class Tag extends Entity implements JsonSerializable {
|
|||||||
protected $userId;
|
protected $userId;
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize(): array {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'userid' => $this->userId,
|
'userid' => $this->userId,
|
||||||
|
|||||||
Reference in New Issue
Block a user