Any excavations made in or under any sidewalk shall be provided with a substantial and adequate footbridge over said excavation on the line of the sidewalk, which bridge shall be at least three feet wide and securely railed on each side so that pedestrians can pass over safely at all times.