In addition to the powers heretofore granted to cities of the second class, as provided for in an act, entitled "An act for the government of cities of the second class," approved the seventh day of March, one thousand nine hundred and one, and the supplements thereto, every city of the second class, in its corporate capacity, in order to decrease and prevent fire, the spread of fire, and fire waste, loss of life from fire, and loss of life or damage to property from unsafe or improper construction or design of buildings, is authorized and empowered, by ordinance,--
To provide for the inspection of the inside and outside of all buildings and premises at any time.
53 P.S. § 25081