mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixes "Whitespace found at end of line"
This commit is contained in:
parent
3307665cbb
commit
1e5ea2451a
1 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
||||||
echo "<div class='msg'><pre>" . $this->_htmlEntities($message->toString());
|
echo "<div class='msg'><pre>" . $this->_htmlEntities($message->toString());
|
||||||
|
|
||||||
if ((is_string($actualMsg) && is_string($expectedMsg)) || (is_array($actualMsg) && is_array($expectedMsg))) {
|
if ((is_string($actualMsg) && is_string($expectedMsg)) || (is_array($actualMsg) && is_array($expectedMsg))) {
|
||||||
|
|
||||||
$diffs = "";
|
$diffs = "";
|
||||||
if (class_exists('PHPUnit_Util_Diff')) {
|
if (class_exists('PHPUnit_Util_Diff')) {
|
||||||
$diffs = PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg);
|
$diffs = PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg);
|
||||||
|
@ -273,7 +273,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
||||||
$differ = new SebastianBergmann\Diff\Differ();
|
$differ = new SebastianBergmann\Diff\Differ();
|
||||||
$diffs = $differ->diff($expectedMsg, $actualMsg);
|
$diffs = $differ->diff($expectedMsg, $actualMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<br />" . $this->_htmlEntities($diffs);
|
echo "<br />" . $this->_htmlEntities($diffs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue