[ticket/1] Check for PHP closing tag

Fix #1