Skip to content

Commit

Permalink
Merge pull request #4 from reliqarts/analysis-X0bpvL
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
reliq committed Nov 16, 2016
2 parents b7153c9 + a623031 commit e73e6e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ReliQArts/GuidedImage/Traits/ImageGuider.php
Expand Up @@ -189,7 +189,9 @@ public function resized(Request $request, GuidedContract $guidedImage, $width, $
}

// if no image; abort
if (!$image) abort(404);
if (!$image) {
abort(404);
}

// Setup response with appropriate headers
$response = ($object) ? $image : new Response(File::get($skimFile), 200, $this->getImageHeaders($request, $image));
Expand Down

0 comments on commit e73e6e9

Please sign in to comment.