Completed
Push — master ( 62cfd7...21e787 )
by Brandon
25s
created
app/Http/Controllers/ApiController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,9 @@
 block discarded – undo
68 68
         $device->mac_address = $request->input('mac_address');
69 69
         $device->time = $request->input('time');
70 70
         $device->cover_status = $request->input('cover_status');
71
-        if ($request->input('cover_command') != null)
72
-            $device->cover_command = $request->input('cover_command');
71
+        if ($request->input('cover_command') != null) {
72
+                    $device->cover_command = $request->input('cover_command');
73
+        }
73 74
         $device->error_msg = $request->input('error_msg');
74 75
         $device->last_network_update_at = Carbon::now();
75 76
         
Please login to merge, or discard this patch.