From 09474f7dcba3d1ea2479106e59a5a4b186d864dd Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 28 May 2020 14:49:13 +0200 Subject: [PATCH] Simplify --- src/TextUI/TestRunner.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/TextUI/TestRunner.php b/src/TextUI/TestRunner.php index b28e4197d17..10058a61809 100644 --- a/src/TextUI/TestRunner.php +++ b/src/TextUI/TestRunner.php @@ -541,11 +541,9 @@ public function run(TestSuite $suite, array $arguments = [], array $warnings = [ $arguments['strictCoverage'] ); - if (isset($arguments['forceCoversAnnotation'])) { - $codeCoverage->setForceCoversAnnotation( - $arguments['forceCoversAnnotation'] - ); - } + $codeCoverage->setForceCoversAnnotation( + $arguments['forceCoversAnnotation'] + ); if (isset($arguments['ignoreDeprecatedCodeUnitsFromCodeCoverage'])) { $codeCoverage->setIgnoreDeprecatedCode(