Pennsylvania constitution
Article I: declaration of rights
Section 14

All prisoners shall be bailable by sufficient sureties, unless for capital offenses when the proof is evident of presumption great; and the privilege of the writ of habeas corpus shall not be suspended, unless when in case of rebellion or invasion the public safety may require it.