Completed
Pull Request — master (#17)
by
unknown
08:29
created
app/Http/Controllers/ImageController.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
         $storagePath = storage_path('app/images/devices/');
29 29
         $imagePath = glob($storagePath . $device_id . "*" . ".jpg");
30 30
         
31
-        if ($imagePath)
32
-            $image = Image::make($imagePath[0]);
33
-        else
31
+        if ($imagePath) {
32
+                    $image = Image::make($imagePath[0]);
33
+        } else
34 34
         {
35 35
             $imagePath = public_path() . '/img/video_not_found.jpg';
36 36
             $image = Image::make($imagePath);
Please login to merge, or discard this patch.