1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 22:15:56 +00:00

deal with phpstan warnings in plugins/note, nsfw, and share

This commit is contained in:
Andrew Dolgov
2021-11-14 21:20:59 +03:00
parent 5f808051b2
commit 242cf916ef
3 changed files with 12 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ class Note extends Plugin {
style='cursor : pointer' title='".__('Edit article note')."'>note</i>";
}
function edit() {
function edit() : void {
$id = clean($_REQUEST['id']);
$sth = $this->pdo->prepare("SELECT note FROM ttrss_user_entries WHERE
@@ -49,7 +49,7 @@ class Note extends Plugin {
<?php
}
function setNote() {
function setNote() : void {
$id = (int)clean($_REQUEST["id"]);
$note = clean($_REQUEST["note"]);