Skip to content

Commit

Permalink
Fixes "Whitespace found at end of line"
Browse files Browse the repository at this point in the history
  • Loading branch information
peloncano committed Aug 8, 2017
1 parent 3307665 commit 1e5ea24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
Expand Up @@ -265,15 +265,15 @@ public function paintFail($message, $test) {
echo "<div class='msg'><pre>" . $this->_htmlEntities($message->toString());

if ((is_string($actualMsg) && is_string($expectedMsg)) || (is_array($actualMsg) && is_array($expectedMsg))) {

$diffs = "";
if (class_exists('PHPUnit_Util_Diff')) {
$diffs = PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg);
} elseif (class_exists('SebastianBergmann\Diff\Differ')) {
$differ = new SebastianBergmann\Diff\Differ();
$diffs = $differ->diff($expectedMsg, $actualMsg);
}

echo "<br />" . $this->_htmlEntities($diffs);
}

Expand Down

0 comments on commit 1e5ea24

Please sign in to comment.