Update to PHP5.4 and format code…

… it means:
  * remove `array()` and use the short-syntax instead,
  * align some operators for consistencies,
  * remove some useless `else` branch.