This commit is contained in:
Dominik Bonsch 2013-02-09 12:26:15 +01:00
parent b9970417c3
commit 49783efbd2

View File

@ -132,7 +132,8 @@ class PHPExcel_RichText implements PHPExcel_IComparable
*
* @return string
*/
public function __toString() {
public function __toString()
{
return $this->getPlainText();
}
@ -168,7 +169,8 @@ class PHPExcel_RichText implements PHPExcel_IComparable
*
* @return string Hash code
*/
public function getHashCode() {
public function getHashCode()
{
$hashElements = '';
foreach ($this->_richTextElements as $element) {
$hashElements .= $element->getHashCode();
@ -183,7 +185,8 @@ class PHPExcel_RichText implements PHPExcel_IComparable
/**
* Implement PHP __clone to create a deep clone, not just a shallow copy.
*/
public function __clone() {
public function __clone()
{
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value)) {