adapted calendar and cashbox.php files according to code style guide