Code formatting via phpformatter.com