mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 15:26:03 +03:00
PSR-2
This commit is contained in:
parent
b9970417c3
commit
49783efbd2
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user