Punishment by flogging, or by branding, marking or tattooing on the body or any other cruel or unusual punishment may not be adjudged by a court-martial or inflicted upon any person subject to this part. The use of irons, single or double, except for the purpose of safe custody, is prohibited.
51 Pa.C.S. § 5801