@@ -69,10 +69,11 @@ |
||
69 | 69 | //Check if the device has an uploaded image on the server and if it is stale |
70 | 70 | $staleImage = $query->where('updated_at', '<=', Carbon::now()->subMinute(10))->first(); |
71 | 71 | |
72 | - if (empty($staleImage)) |
|
73 | - $isImageStale = false; |
|
74 | - else |
|
75 | - $isImageStale = true; |
|
72 | + if (empty($staleImage)) { |
|
73 | + $isImageStale = false; |
|
74 | + } else { |
|
75 | + $isImageStale = true; |
|
76 | + } |
|
76 | 77 | |
77 | 78 | return $isImageStale; |
78 | 79 | } |