Got rid of the MagicWord indexing constants (MAG_xxx), replaced them by string indexi...
[lhc/web/wiklou.git] / includes / ZhClient.php
index 4f1524f..0451ce8 100644 (file)
@@ -1,10 +1,13 @@
 <?php
+/**
+ * @package MediaWiki
+ */
+
 /**
  * Client for querying zhdaemon
  *
  * @package MediaWiki
  */
-
 class ZhClient {
        var $mHost, $mPort, $mFP, $mConnected;
 
@@ -93,12 +96,12 @@ class ZhClient {
        }
 
        /**
-        * Convert the input to all possible variants 
+        * Convert the input to all possible variants
         *
         * @param string $text input text
         * @return array langcode => converted_string
         * @access public
-        */     
+        */
        function convertToAllVariants($text) {
                $len = strlen($text);
                $q = "CONV ALL $len\n$text";
@@ -116,7 +119,7 @@ class ZhClient {
                        $i+=$len;
                }
                return $ret;
-    }
+       }
        /**
         * Perform word segmentation
         *
@@ -143,5 +146,4 @@ class ZhClient {
                fclose($this->mFP);
        }
 }
-
 ?>
\ No newline at end of file