fixes #505 added JSON_PRETTY_PRINT for php >= 5.4.0

added php version check and JSON_PRETTY_PRINT option
Referencing from http://www.phpdoc.org/docs/latest/guides/docblocks.html
This states that you only need the period if you have no newline between summary and description.
But if you want it, I'll do it :+1: