summaryrefslogtreecommitdiff
path: root/plugins/search_sphinx
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-04-26 20:57:36 +0300
committerAndrew Dolgov <[email protected]>2017-04-26 20:57:36 +0300
commit21ce7d9ec02b0bf7c6e0ac7c28bc7c1bb0a841c5 (patch)
tree2a784cf4c91abe828b42e79a886c2cc0f80df5e2 /plugins/search_sphinx
parentea79a0e033e40057279a7f464c9464145eedc932 (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/search_sphinx')
-rw-r--r--plugins/search_sphinx/init.php3
-rw-r--r--plugins/search_sphinx/sphinxapi.php4
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/search_sphinx/init.php b/plugins/search_sphinx/init.php
index 065af64f2..8520bb0d8 100644
--- a/plugins/search_sphinx/init.php
+++ b/plugins/search_sphinx/init.php
@@ -61,5 +61,4 @@ class Search_Sphinx extends Plugin {
function api_version() {
return 2;
}
-}
-?>
+} \ No newline at end of file
diff --git a/plugins/search_sphinx/sphinxapi.php b/plugins/search_sphinx/sphinxapi.php
index 90643d3c7..41b0fac41 100644
--- a/plugins/search_sphinx/sphinxapi.php
+++ b/plugins/search_sphinx/sphinxapi.php
@@ -973,6 +973,10 @@ class SphinxClient
return pack ( "N", $t2 );
}
+ /**
+ * @SuppressWarnings(unused)
+ */
+
/// add query to multi-query batch
/// returns index into results array from RunQueries() call
function AddQuery ( $query, $index="*", $comment="" )