diff options
author | Andrew Dolgov <[email protected]> | 2017-04-26 20:57:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-26 20:57:36 +0300 |
commit | 21ce7d9ec02b0bf7c6e0ac7c28bc7c1bb0a841c5 (patch) | |
tree | 2a784cf4c91abe828b42e79a886c2cc0f80df5e2 /plugins/import_export/init.php | |
parent | ea79a0e033e40057279a7f464c9464145eedc932 (diff) |
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
Diffstat (limited to 'plugins/import_export/init.php')
-rw-r--r-- | plugins/import_export/init.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index 491216e06..ec618b723 100644 --- a/plugins/import_export/init.php +++ b/plugins/import_export/init.php @@ -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; } -} -?> +}
\ No newline at end of file |