If the answer and reply upon application for a writ of mandamus raise only questions of law or put in issue immaterial statements not affecting substantial rights of the parties, or when the question of fact has been determined, the court shall hear the argument.
A.R.S. § 12-2027