From 6c76e6d9e3076c3140ef7e8bc020736b537907ca Mon Sep 17 00:00:00 2001 From: Maher El Gamil Date: Thu, 18 Aug 2016 21:15:14 +0000 Subject: [PATCH] Applied fixes from StyleCI --- src/Laradown.php | 8 ++++---- src/helpers.php | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) 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); } }