Update code comments: remove old class names
[plcapi.git] / src / Helper / Charset.php
index 6d5eb6a..cbf00a9 100644 (file)
@@ -87,7 +87,7 @@ class Charset
      *
      * @return string
      */
-    public function encode_entities($data, $src_encoding = '', $dest_encoding = '')
+    public function encodeEntities($data, $src_encoding = '', $dest_encoding = '')
     {
         if ($src_encoding == '') {
             // lame, but we know no better...
@@ -118,7 +118,7 @@ class Charset
             case 'UTF-8_ISO-8859-1':
                 // NB: this will choke on invalid UTF-8, going most likely beyond EOF
                 $escaped_data = '';
-                // be kind to users creating string xmlrpcvals out of different php types
+                // be kind to users creating string xmlrpc values out of different php types
                 $data = (string)$data;
                 $ns = strlen($data);
                 for ($nn = 0; $nn < $ns; $nn++) {
@@ -218,7 +218,7 @@ class Charset
      *
      * @return bool
      */
-    public function is_valid_charset($encoding, $validList)
+    public function isValidCharset($encoding, $validList)
     {
         if (is_string($validList)) {
             $validList = explode(',', $validList);