Skip to content

Commit

Permalink
Merge pull request #8 from buzzylab/analysis-XpEo4L
Browse files Browse the repository at this point in the history
Fixed CS
  • Loading branch information
maherelgamil authored Aug 18, 2016
2 parents 66f0c0d + 6c76e6d commit f74cf14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Laradown.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Laradown
public function __construct(ParsedownExtra $markdown)
{
$this->markdown = $markdown;
$this->files = app('files');
$this->files = app('files');
}

/**
Expand Down Expand Up @@ -98,7 +98,7 @@ protected function checkCollectBlockStarted()
}

/**
* Get style
* Get style.
*
* @param null $file
*
Expand All @@ -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);
}

Expand Down
3 changes: 2 additions & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function markdown($content)
*
* @return mixed
*/
function markdown_style($file = null){
function markdown_style($file = null)
{
return app('markdown')->loadStyle($file);
}
}

0 comments on commit f74cf14

Please sign in to comment.