Skip to content

Commit 9d21818

Browse files
committed
Check text direction has 1 of 2 valid values
1 parent 616a8a7 commit 9d21818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Phpbb/TranslationValidator/Validator/FileValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,8 @@ public function validateJsonFile($originFile)
655655
$this->output->addMessage(Output::FATAL, 'The phpbb-version value should not be empty and contain a valid version number.', $originFile);
656656
}
657657
// Check for valid direction
658-
$direction = $jsonContent['extra']['direction'];
659-
if (!in_array($direction, array('ltr', 'rtl')))
658+
$textDirection = $jsonContent['extra']['direction'];
659+
if (!in_array($textDirection, array('ltr', 'rtl')))
660660
{
661661
$this->output->addMessage(Output::FATAL, 'The direction can only be rtl or ltr.', $originFile);
662662
}

0 commit comments

Comments
 (0)