..F....... [DEV-539] applications.php: minor code improvements; fixed formatting