Closed php tag in pagination.rst

Netbeans complained about the text below the PHP code section since the code block wasn't closed and the text interpreted as PHP.