From 75d8bded3cd1dac5723adfbe8d2da902795f2d4a Mon Sep 17 00:00:00 2001 From: Christian Schnegelberger Date: Tue, 10 Nov 2020 19:17:26 +0100 Subject: [PATCH] Combine those two if-sentences to one --- .../Validator/LangKeyValidator.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Phpbb/TranslationValidator/Validator/LangKeyValidator.php b/src/Phpbb/TranslationValidator/Validator/LangKeyValidator.php index e30a4e7..f4a6c17 100644 --- a/src/Phpbb/TranslationValidator/Validator/LangKeyValidator.php +++ b/src/Phpbb/TranslationValidator/Validator/LangKeyValidator.php @@ -606,16 +606,10 @@ public function validateHtml($file, $key, $sourceString, $originString) 'SUPPORT_BODY', 'UPDATE_INSTALLATION_EXPLAIN', 'OVERVIEW_BODY', - ))) - { - $sourceString = '

' . $sourceString . '

'; - $originString = '

' . $originString . '

'; - } - // Check for 3.2 - if ($this->phpbbVersion == '3.2' && ($this->originLanguagePath . 'ucp.php' === $file && in_array($key, array( + )) || ($this->phpbbVersion == '3.2' && ($this->originLanguagePath . 'ucp.php' === $file && in_array($key, array( //Check for 3.2 'TERMS_OF_USE_CONTENT', 'PRIVACY_POLICY', - )))) + ))))) { $sourceString = '

' . $sourceString . '

'; $originString = '

' . $originString . '

';