code indentation, comments, short array syntax

Added code indentation, comments and the PHP short array syntax. Unfortunately, I was not able to test my changes locally after syncing my local and github repos with upstream. I keep getting a white screen. I checked the app/storage owner:group and file permissions. But that didn't do it. I also checked my .htaccess file against other projects. I will dig into into more later. For now, if you can test it before merging, that would be ideal.