Skip to content

Commit

Permalink
Merge branch '5.4' into 6.0
Browse files Browse the repository at this point in the history
* 5.4:
  Fix CS
  Fix CS
  • Loading branch information
fabpot committed Jul 20, 2022
2 parents 9aa5fe2 + 7a1a8f6 commit 55ffbe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Command/TranslationPullCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

switch ($format) {
case 'xlf20': $xliffVersion = '2.0';
// no break
// no break
case 'xlf12': $format = 'xlf';
}

Expand All @@ -159,7 +159,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

if ($force) {
foreach ($providerTranslations->getCatalogues() as $catalogue) {
$operation = new TargetOperation((new MessageCatalogue($catalogue->getLocale())), $catalogue);
$operation = new TargetOperation(new MessageCatalogue($catalogue->getLocale()), $catalogue);
if ($intlIcu) {
$operation->moveMessagesToIntlDomainsIfPossible();
}
Expand Down
2 changes: 1 addition & 1 deletion PseudoLocalizationTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private function expand(string &$trans, string $visibleText): void
}

$visibleLength = $this->strlen($visibleText);
$missingLength = (int) (ceil($visibleLength * $this->expansionFactor)) - $visibleLength;
$missingLength = (int) ceil($visibleLength * $this->expansionFactor) - $visibleLength;
if ($this->brackets) {
$missingLength -= 2;
}
Expand Down

0 comments on commit 55ffbe4

Please sign in to comment.