Skip to content

Commit

Permalink
Fix sprintf calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 28, 2014
1 parent 278575c commit e6b4e10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/I18n/ChainMessagesLoader.php
Expand Up @@ -49,10 +49,10 @@ public function __construct(array $loaders) {
public function __invoke() {
foreach ($this->_loaders as $k => $loader) {
if (!is_callable($loader)) {
throw new \RuntimeException(
sprintf('Loader "%s" in the chain is not a valid callable'),
throw new \RuntimeException(sprintf(
'Loader "%s" in the chain is not a valid callable',
$k
);
));
}

$package = $loader();
Expand All @@ -62,10 +62,10 @@ public function __invoke() {
}

if (!($package instanceof Package)) {
throw new \RuntimeException(
sprintf('Loader "%s" in the chain did not return a valid Package object'),
throw new \RuntimeException(sprintf(
'Loader "%s" in the chain did not return a valid Package object',
$k
);
));
}

if (count($package->getMessages())) {
Expand Down

0 comments on commit e6b4e10

Please sign in to comment.