The Department of Public Works is hereby directed to cause an inspection to be made of all cases where excavations are made in the public streets or other work done thereon, and to see that all sockets used for posts or poles in connection with parades or street displays have been properly replaced after removal in the making of such excavations or doing such work. In case such sockets have not been replaced to the satisfaction of said Department of Public Works, said Department shall cause such sockets to be put in, and any cost thereof shall be deducted from any deposit made to cover damage to such street by reason of such excavation or street work.