Updated var_dumps to go to error_log and strange tertiary conditionals to be regular if then
PHP-cs-fixer