It shall be the duty of any court of common pleas of the county within which such city is situate, on application made by the proper parties in interest, to enjoin and restrain any subsequent builder on the adjoining lot from cutting or breaking into or using said new party wall, or any part thereof, until he or they shall have first paid to the first builder, his heirs or assigns, his or their fair proportion of the cost of said party wall or of the cost of, in whole or in part, tearing down the old wall, or, in whole or in part, of erecting a new party wall, as said proportion shall have been estimated by the said superintendent, or his lawful agent, of the said bureau of building inspection.
53 P.S. § 24875