squizlabs/HTML_CodeSniffer — pull request #19 by lwright-sq (2012-07-24 05:00:34+00:00)
Title: Fix paging bugs for single page screens

Two cosmetic issues identified were identified with the Auditor, which have been fixed thus:

* When there is one page of results (5 or less issues), when you click on one (disabled) arrow, the opposite arrow becomes enabled.
* Fixed: the disabled arrows were presuming that when one arrow is clicked the other must enable. Not the case with there is only one page of results.
* When there is one detail result ("1 of 1"), the next arrow remains enabled.
* Fixed: the code put the "should the previous or next page button be disabled" question in an if-else if block, therefore incorrectly assuming that both could be disabled at the same time.