Code Style and documentation

This commit is contained in:
Stéphane Goetz
2015-07-17 23:38:06 +02:00
parent e7afd9aa28
commit 4f8d817365
22 changed files with 415 additions and 177 deletions

View File

@ -27,7 +27,7 @@ class CommonMarkConverter extends \League\CommonMark\CommonMarkConverter
protected function getLinkRenderer(Environment $environment)
{
return new LinkRenderer($environment->getConfig('daux'));
return new LinkRenderer($environment->getConfig('daux'));
}
protected function extendEnvironment(Environment $environment)

View File

@ -22,12 +22,12 @@ class LinkRenderer extends \League\CommonMark\Inline\Renderer\LinkRenderer
}
/**
* @param $url
* @param string $url
* @return Entry
* @throws Exception
*/
protected function resolveInternalFile($url) {
protected function resolveInternalFile($url)
{
$file = DauxHelper::getFile($this->daux['tree'], $url);
if ($file) {
return $file;