Formatting
This commit is contained in:
parent
f4e4284fc1
commit
a3bed80a3d
|
|
@ -89,7 +89,7 @@ class Diff
|
|||
$this->from = $from;
|
||||
$this->to = $to;
|
||||
|
||||
if($header) {
|
||||
if ($header) {
|
||||
$this->header = $header;
|
||||
}
|
||||
}
|
||||
|
|
@ -112,7 +112,7 @@ class Diff
|
|||
*/
|
||||
public function diff()
|
||||
{
|
||||
if($this->from === $this->to) {
|
||||
if ($this->from === $this->to) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ class Diff
|
|||
*/
|
||||
public function toArray()
|
||||
{
|
||||
if($this->from === $this->to) {
|
||||
if ($this->from === $this->to) {
|
||||
return array();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ class Exporter
|
|||
return str_replace("\n", '\n', $string);
|
||||
}
|
||||
|
||||
if(is_object($this->value)) {
|
||||
if (is_object($this->value)) {
|
||||
return sprintf(
|
||||
'%s Object (%s)',
|
||||
get_class($this->value),
|
||||
|
|
@ -277,7 +277,7 @@ class Exporter
|
|||
*/
|
||||
public function toArray()
|
||||
{
|
||||
if(!is_object($this->value)) {
|
||||
if (!is_object($this->value)) {
|
||||
return (array)$this->value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue