(a) After hearing the allegations and proofs in the cause the Court shall render judgment (in accordance with the verdict of the jury, if a jury shall have tried the cause) either confirming or annulling such election altogether.
(b) If it appear by the judgment of the Court or the verdict of the jury (if there be a jury) that any other person than the one whose election is contested received the highest number of legal votes, judgment shall be rendered declaring such person duly elected.
(c) When the person whose election is contested is proved to be ineligible to the office, judgment shall be rendered declaring the election void and the office vacant, and such proceedings shall then be had as in vacancies happening from any other cause. When it shall appear that 2 persons have received an equal number of legal votes for the same office, the provisions of law for the settlement of such cases shall prevail, if there be any such provision; if there be none, then the office shall be adjudged and declared vacant, and such proceedings shall then be had as in vacancies happening from any other cause.