From 9f175f22f4ce7bdf97a4594990640d8e2b792213 Mon Sep 17 00:00:00 2001 From: Luis Cano Date: Tue, 8 Aug 2017 12:59:33 -0400 Subject: [PATCH] Abiding to code standards --- lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php index 75def3eb4..2c04d5215 100644 --- a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php @@ -267,13 +267,9 @@ class CakeHtmlReporter extends CakeBaseReporter { if ((is_string($actualMsg) && is_string($expectedMsg)) || (is_array($actualMsg) && is_array($expectedMsg))) { $diffs = ""; - - // PHPUnit 3.7.38 support - if(class_exists('PHPUnit_Util_Diff')) { + if (class_exists('PHPUnit_Util_Diff')) { $diffs = PHPUnit_Util_Diff::diff($expectedMsg, $actualMsg); - - // PHPUnit 4.x and 5.x support - }else if(class_exists('SebastianBergmann\Diff\Differ')){ + } elseif (class_exists('SebastianBergmann\Diff\Differ')) { $diffs = (new SebastianBergmann\Diff\Differ())->diff($expectedMsg, $actualMsg); }