git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comments and formatting
[plcapi.git]
/
src
/
Helper
/
Charset.php
diff --git
a/src/Helper/Charset.php
b/src/Helper/Charset.php
index
2ea370f
..
8fdecb1
100644
(file)
--- a/
src/Helper/Charset.php
+++ b/
src/Helper/Charset.php
@@
-4,6
+4,9
@@
namespace PhpXmlRpc\Helper;
use PhpXmlRpc\PhpXmlRpc;
use PhpXmlRpc\PhpXmlRpc;
+/**
+ * @todo implement an interface
+ */
class Charset
{
// tables used for transcoding different charsets into us-ascii xml
class Charset
{
// tables used for transcoding different charsets into us-ascii xml
@@
-27,18
+30,19
@@
class Charset
'EUC-JP', 'EUC-', 'EUC-KR', 'EUC-CN',),
);
'EUC-JP', 'EUC-', 'EUC-KR', 'EUC-CN',),
);
+ /** @var Charset $instance */
protected static $instance = null;
/**
* This class is singleton for performance reasons.
protected static $instance = null;
/**
* This class is singleton for performance reasons.
- * @todo
can't
we just make $xml_iso88591_Entities a static variable instead ?
+ * @todo
should
we just make $xml_iso88591_Entities a static variable instead ?
*
* @return Charset
*/
public static function instance()
{
if (self::$instance === null) {
*
* @return Charset
*/
public static function instance()
{
if (self::$instance === null) {
- self::$instance = new s
elf
();
+ self::$instance = new s
tatic
();
}
return self::$instance;
}
return self::$instance;
@@
-305,5
+309,4
@@
class Charset
throw new \Exception('Unsupported charset: ' . $charset);
}
}
throw new \Exception('Unsupported charset: ' . $charset);
}
}
-
}
}