Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Jun 21, 2018
1 parent 1b352c7 commit dbe0ed4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Symfony/Component/Translation/Translator.php
Expand Up @@ -132,11 +132,7 @@ public function addResource($format, $resource, $locale, $domain = null)
}
}

/**
* @param string $domain
* @param MessageFormatterInterface $formatter
*/
public function addFormatter(string $domain, MessageFormatterInterface $formatter)
public function addFormatter(string $domain, MessageFormatterInterface $formatter): void
{
$this->formatters[$domain] = $formatter;
}
Expand Down Expand Up @@ -445,12 +441,7 @@ private function getConfigCacheFactory(): ConfigCacheFactoryInterface
return $this->configCacheFactory;
}

/**
* @param string $domain
*
* @return MessageFormatterInterface
*/
private function getFormatter(string $domain)
private function getFormatter(string $domain): MessageFormatterInterface
{
return $this->formatters[$domain] ?? $this->formatters['_default'];
}
Expand Down

0 comments on commit dbe0ed4

Please sign in to comment.