Skip to content
Permalink
Browse files

Remove unused variable, micro optimisation

  • Loading branch information...
ceeram committed Sep 24, 2014
1 parent 6424d05 commit 90660350d77cb93055f0a3fca6698a62f4b258f4
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/I18n/Formatter/SprintfFormatter.php
@@ -37,11 +37,9 @@ class SprintfFormatter implements FormatterInterface {
* @return string The formatted message
*/
public function format($locale, $message, array $vars) {
$isString = is_string($message);
if ($isString && isset($vars['_singular'])) {
if (is_string($message) && isset($vars['_singular'])) {
$message = [$vars['_singular'], $message];
unset($vars['_singular']);
$isString = false;
}
if (is_string($message)) {

0 comments on commit 9066035

Please sign in to comment.
You can’t perform that action at this time.