Skip to content

Commit

Permalink
Remove unused variable, micro optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Sep 24, 2014
1 parent 6424d05 commit 9066035
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/I18n/Formatter/SprintfFormatter.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9066035

Please sign in to comment.