(a) Notice In an unlawful detainer action or other action brought under chapter 4 of title 3 of part 3 of the Code of Civil Procedure (commencing with section 1159), notice of a motion for summary judgment must be given in compliance with Code of Civil Procedure sections 1010.6 or 1013 and 1170.7. (Subd (a) amended effective January 1, 2016.) (b) Opposition and reply at hearing Any opposition to the motion and any reply to an opposition may be made orally at the time of hearing or in writing as set