rmlewisuk/justdelete.me — pull request #299 by urda (2013-12-16 21:57:51+00:00)
Title: Fix static-gen on other PHP installs + cleanup

While doing some work with justdelete.me this weekend, I noticed that the `$ make gen` operation can fail with the error:

PHP Parse error: syntax error, unexpected '[' in /path/to/justdelete.me/static-gen.php on line 3

This is due to the fact that static-gen.php is using a feature *new* to PHP 5.4.0, the short array syntax:

$langs = ['en', ... ];

Since it usually is hard for users to upgrade PHP installs on their machine (without breaking development or live websites!) I flipped it back to the array syntax pre-5.4.0

$langs = array('en', ...);

Allowing a user to run `$ make gen` on machines with PHP versions lower than 5.4.0.

---

I also took the time to reorder the languages to be 'English' (the primary language of this project) followed by all other languages in alphabetic order. This goes for the array and PHP `if` blocks.

---

Long story short, make `static-gen.php` work on machines with versions lower than PHP 5.4.0, and general clean up @rmlewisuk :smile: