Reformated (PSR1/PSR2)
readability - removed var assignation in conditions