fixed a brace according to the coding standard

changed the word "twice" to "again" in phpdoc
also the brace of `if` should go on the next line
thanks @EvanPurkhiser
Merge pull request #463 from enov/bugfix/3931/exit-with-error-code/take2

Re-fixes #3931: brace on the next line according to the coding standard