If any person who has lodged a petition has, in addition to calling in question the election of the returned candidate, claimed a declaration that he himself or any other candidate has been duly elected and the court is of opinion –
- that in fact the petitioner or such other candidate received a majority of the valid votes; or
- that but for the votes obtained by the returned candidate by corrupt practices the petitioner or such other candidate would have obtained a majority of the valid votes, the court shall after declaring the election of the returned candidate to be void declared the petitioner or such other candidate, as the case may be, to have been duly elected.