Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Merge 4a62162 into effe4e9
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jun 15, 2016
2 parents effe4e9 + 4a62162 commit 2586154
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Generator/ExternalBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ public function generate(PageCollection $pageCollection, \Closure $messageCallba

$generatedPages->add($page);
} catch (\Exception $e) {
$error = sprintf("Cannot get contents from %s", $page->getVariable('external'));
$error = sprintf('Cannot get contents from %s', $page->getVariable('external'));
$message = sprintf("> Unable to generate '%s': %s", $page->getId(), $error);
call_user_func_array($messageCallback, ['GENERATE_PROGRESS', $message]);
}

}

return $generatedPages;
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/GeneratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface GeneratorInterface
{
/**
* @param PageCollection $pageCollection
* @param \Closure $messageCallback
* @param \Closure $messageCallback
*
* @return PageCollection
*/
Expand Down
2 changes: 1 addition & 1 deletion src/PHPoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ protected function convertPages()
}
}
if ($countError > 0) {
call_user_func_array($this->messageCallback, ['CONVERT_PROGRESS', sprintf("Errors: %s", $countError)]);
call_user_func_array($this->messageCallback, ['CONVERT_PROGRESS', sprintf('Errors: %s', $countError)]);
}
}

Expand Down

0 comments on commit 2586154

Please sign in to comment.