Skip to content

Commit

Permalink
Fix some static analisys reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Jun 15, 2023
1 parent fe65a2f commit 4492193
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Db/Attach.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function setDeepLinkUrl(string $deepLinkUrl): void {
$this->deepLinkUrl = $deepLinkUrl;
}

public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'note_id' => $this->noteId,
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Note.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function setAttachts(array $attachts): void {
$this->attachts = $attachts;
}

public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'title' => $this->title,
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/NoteShare.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function setDisplayName (string $displayName): void {
$this->displayName = $displayName;
}

public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'note_id' => $this->noteId,
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/NoteTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4492193

Please sign in to comment.