Completed
Pull Request — master (#132)
by
unknown
06:21
created
app/Http/Controllers/ImageController.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,10 +25,11 @@
 block discarded – undo
25 25
      */
26 26
     public function show($device_id)
27 27
     {
28
-        if (Storage::disk('private')->exists('deviceimage/'.$device_id))
29
-            $image = Image::make(Storage::disk('private')->get('deviceimage/'.$device_id));
30
-        else
31
-            $image = Image::make('img/video_not_found.jpg');
28
+        if (Storage::disk('private')->exists('deviceimage/'.$device_id)) {
29
+                    $image = Image::make(Storage::disk('private')->get('deviceimage/'.$device_id));
30
+        } else {
31
+                    $image = Image::make('img/video_not_found.jpg');
32
+        }
32 33
         
33 34
         return $image->response();
34 35
     }
Please login to merge, or discard this patch.