diff --git a/Command/TranslationPullCommand.php b/Command/TranslationPullCommand.php index 42513a8a..f30e64d7 100644 --- a/Command/TranslationPullCommand.php +++ b/Command/TranslationPullCommand.php @@ -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'; } @@ -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(); } diff --git a/PseudoLocalizationTranslator.php b/PseudoLocalizationTranslator.php index 848dc1d2..ba7319d4 100644 --- a/PseudoLocalizationTranslator.php +++ b/PseudoLocalizationTranslator.php @@ -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; }