Administrative Litigation Act Article 237-14

Where the administrative court determines that the objection against the detention sanction and the petition to cease detention are meritless, the court shall rule to dismiss the case by a ruling. If the court determines that the petitions are meritorious, it shall render a ruling to release the person detained.Where the administrative court determines that the petition to continue the detention and the petition to extend the detention period are meritless, the court shall rule to dismiss the case by a ruling. If the court determines that the petitions are meritorious, the court shall render a ruling to continue the detention or to extend the detention period.
中文原文 行政訴訟法第237-14條
行政法院認收容異議、停止收容之聲請為無理由者,應以裁定駁回之。
認有理由者,應為釋放受收容人之裁定。
行政法院認續予收容、延長收容之聲請為無理由者,應以裁定駁回之。
認有理由者,應為續予收容或延長收容之裁定。

English translation for reference only; the Chinese text prevails. Not legal advice.