Cal. Welf. & Inst. Code § 636
(c) If the probation officer is recommending that the minor be detained, the probation officer shall submit to the court documentation, as follows:
(d) Except as provided in subdivision (e), before detaining the minor, the court shall determine whether continuance in the home is contrary to the minor’s welfare and whether there are available services that would prevent the need for further detention. The court shall make that determination on a case-by-case basis and shall make reference to the documentation provided by the probation officer or other evidence relied upon in reaching its decision.
(2) If the minor cannot be returned to the custody of the minor’s parent or legal guardian at the detention hearing, the court shall state the facts upon which the detention is based. The court shall make the following findings on the record and reference the probation officer’s report or other evidence relied upon to make its setting determinations:
(3) If the minor cannot be returned to the custody of the minor’s parent or legal guardian at the detention hearing, the court shall make the following orders: