Skip to content

Commit

Permalink
Fix StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheyd committed Dec 28, 2019
1 parent 32db88e commit 9b87b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function render($data = [])
return $this->minify($content);
}

private function parseImg(& $content)
private function parseImg(&$content)
{
$html = new \DOMDocument('1.0', 'utf-8');
@$html->loadHTML($content);
Expand All @@ -137,7 +137,7 @@ private function parseImg(& $content)
if (preg_match('`^/`', $src)) {
$width = $tag->getAttribute('width');
$height = $tag->getAttribute('height');
if(!empty($width) && !empty($height)) {
if (!empty($width) && !empty($height)) {
$src = img_url($src, $width, $height, 'resize');
}
$tag->setAttribute('src', config('app.url').$src);
Expand Down

0 comments on commit 9b87b15

Please sign in to comment.