mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:15:55 +00:00
update phpmd ruleset to use (subset) of cleancode
fix various minor issues reported by static analysis remove redundant php closing tag from several more files
This commit is contained in:
@@ -91,6 +91,9 @@ class Import_Export extends Plugin implements IHandler {
|
||||
return in_array($method, array("exportget"));
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
||||
*/
|
||||
function before($method) {
|
||||
return $_SESSION["uid"] != false;
|
||||
}
|
||||
@@ -99,6 +102,9 @@ class Import_Export extends Plugin implements IHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @SuppressWarnings(unused)
|
||||
*/
|
||||
function exportget() {
|
||||
$exportname = CACHE_DIR . "/export/" .
|
||||
sha1($_SESSION['uid'] . $_SESSION['login']) . ".xml";
|
||||
@@ -468,5 +474,4 @@ class Import_Export extends Plugin implements IHandler {
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
}
|
||||
Reference in New Issue
Block a user