diff --git a/src/Laradown.php b/src/Laradown.php index a8e4a16..4c18d85 100644 --- a/src/Laradown.php +++ b/src/Laradown.php @@ -31,7 +31,7 @@ class Laradown public function __construct(ParsedownExtra $markdown) { $this->markdown = $markdown; - $this->files = app('files'); + $this->files = app('files'); } /** @@ -98,7 +98,7 @@ protected function checkCollectBlockStarted() } /** - * Get style + * Get style. * * @param null $file * @@ -110,12 +110,12 @@ public function loadStyle($file = null) $content = ''; // Get style file or get default - if(is_null($file)){ + if (is_null($file)) { $file = __DIR__.'/../public/github.css'; } // check if style file exists - if($this->files->exists($file)){ + if ($this->files->exists($file)) { $content = $this->files->get($file); } diff --git a/src/helpers.php b/src/helpers.php index f1ada24..08f0d0e 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -24,7 +24,8 @@ function markdown($content) * * @return mixed */ - function markdown_style($file = null){ + function markdown_style($file = null) + { return app('markdown')->loadStyle($file); } }