summaryrefslogtreecommitdiff
path: root/plugins/af_lang_detect
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/af_lang_detect
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/af_lang_detect')
-rw-r--r--plugins/af_lang_detect/init.php1
-rw-r--r--plugins/af_lang_detect/languagedetect/LanguageDetect.php4
-rw-r--r--plugins/af_lang_detect/languagedetect/Text/LanguageDetect/ISO639.php4
-rw-r--r--plugins/af_lang_detect/languagedetect/Text/LanguageDetect/Parser.php2
4 files changed, 4 insertions, 7 deletions
diff --git a/plugins/af_lang_detect/init.php b/plugins/af_lang_detect/init.php
index 3f2eb29f8..e78741319 100644
--- a/plugins/af_lang_detect/init.php
+++ b/plugins/af_lang_detect/init.php
@@ -43,4 +43,3 @@ class Af_Lang_Detect extends Plugin {
}
}
-?>
diff --git a/plugins/af_lang_detect/languagedetect/LanguageDetect.php b/plugins/af_lang_detect/languagedetect/LanguageDetect.php
index 0856571bf..6c1863508 100644
--- a/plugins/af_lang_detect/languagedetect/LanguageDetect.php
+++ b/plugins/af_lang_detect/languagedetect/LanguageDetect.php
@@ -64,6 +64,8 @@ require_once __DIR__ . '/Text/LanguageDetect/ISO639.php';
* @version Release: @package_version@
* @link http://pear.php.net/package/Text_LanguageDetect/
* @todo allow users to generate their own language models
+ *
+ * @SuppressWarnings(PHPMD)
*/
class Text_LanguageDetect
{
@@ -1704,5 +1706,3 @@ class Text_LanguageDetect
}
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
-
-?>
diff --git a/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/ISO639.php b/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/ISO639.php
index c577a2e1a..7caa9794e 100644
--- a/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/ISO639.php
+++ b/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/ISO639.php
@@ -25,6 +25,8 @@
* @copyright 2011 Christian Weiske <[email protected]>
* @license http://www.debian.org/misc/bsd.license BSD
* @link http://www.loc.gov/standards/iso639-2/php/code_list.php
+ *
+ * @SuppressWarnings(PHPMD)
*/
class Text_LanguageDetect_ISO639
{
@@ -337,5 +339,3 @@ class Text_LanguageDetect_ISO639
return self::$code3ToName[$code];
}
}
-
-?> \ No newline at end of file
diff --git a/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/Parser.php b/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/Parser.php
index 1c20c2657..44eea897f 100644
--- a/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/Parser.php
+++ b/plugins/af_lang_detect/languagedetect/Text/LanguageDetect/Parser.php
@@ -345,5 +345,3 @@ class Text_LanguageDetect_Parser extends Text_LanguageDetect
}
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
-
-?>