Skip to content

Commit

Permalink
Combine those two if-sentences to one
Browse files Browse the repository at this point in the history
  • Loading branch information
Crizz0 committed Nov 10, 2020
1 parent 5f94701 commit 75d8bde
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Phpbb/TranslationValidator/Validator/LangKeyValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,16 +606,10 @@ public function validateHtml($file, $key, $sourceString, $originString)
'SUPPORT_BODY',
'UPDATE_INSTALLATION_EXPLAIN',
'OVERVIEW_BODY',
)))
{
$sourceString = '<p>' . $sourceString . '</p>';
$originString = '<p>' . $originString . '</p>';
}
// 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 = '<p>' . $sourceString . '</p>';
$originString = '<p>' . $originString . '</p>';
Expand Down

0 comments on commit 75d8bde

Please sign in to comment.