Skip to content

Commit

Permalink
Style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 15, 2023
1 parent 6d9cb34 commit 86632de
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ protected function loadLanguageLocale($locale, $domain, $processAliases = false)
/**
* Apply loaded aliases to the provided TextDomain.
*
* @param TextDomain $data Text domain to update
* @param TextDomain $data Text domain to update
* @param string $currentLocale The locale currently being loaded
* @param string $currentDomain The name of the text domain currently being loaded
*
* @return void
*/
Expand All @@ -265,7 +267,8 @@ protected function applyAliases(TextDomain $data, string $currentLocale, string
}
// Do not overwrite existing values with alias, and do not create aliases
// when target values are missing.
if ($this->aliasDomains[$domain]->offsetExists($key)
if (
$this->aliasDomains[$domain]->offsetExists($key)
&& !$data->offsetExists($alias)
) {
$data->offsetSet($alias, $this->aliasDomains[$domain]->offsetGet($key));
Expand Down

0 comments on commit 86632de

Please sign in to comment.