(a) No accessory building shall be erected in any yard other than a rear yard, except as provided hereafter. An accessory building may be erected as part of a principal building or may be connected thereto by a breezeway or similar structure, provided all yard requirements of this chapter for a principal building are complied with and provided such structure meets all building codes then in force. The exterior of the accessory building shall be of the same materials and of the same design as the principal building. (b) Corner lots in agricultural and residential district. Any agricultural or residential district, where a corner lot adjoins in the rear a lot fronting on the side street, no part of any accessory building on such corner lot within 25 feet of the common lot line shall be nearer a side road lot line than the least depth of the front yard required along such side street for a dwelling on such lot, and in no case shall any part of such accessory building be nearer to the side road lot line than the least width of the side yard required for the principal building to which it is accessory.