(a) The owner, occupant or person having the care of any building or lot of land bordering on any street with graded or paved sidewalk shall, within twenty-four hours after a snowfall of two inches or more, cause the snow to be removed from the sidewalk. Application of this section shall extend to include snow or ice falling from any building.
(b) Whenever the sidewalk or any part thereof shall become encumbered with ice, the owner, occupant or person in control, shall, within twenty-four hours after its formation cause the sidewalk to be made safe by removing the ice or sprinkling the sidewalk with salt or some other suitable substance.