This commit is contained in:
Dominik Bonsch 2013-02-09 12:26:15 +01:00
parent b9970417c3
commit 49783efbd2
1 changed files with 87 additions and 84 deletions

View File

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