Application of Islamic law by country punished by imprisonment of up to six months. It has a civil law system. The Family Code is mainly derived from Islamic law and regulates personal status matters such as marriage, divorce, child custody and inheritance. Sharia does not apply to criminal law. Article 2 of Egypt's 2014 Constitution declares the principles of Islamic sharia to be the main source of legislation. Egypt's law and enforcement system are in flux since its 2011 Revolution; however, the declaration of Sharia's primacy in Article 2 is a potential ground for unconstitutionality of any secular laws in Egyptian legal code. Sharia courts and
Application of Islamic law by country codifies sharia, and retains punishments such as the stoning to death of adulterers. However virtually all courts, including the Supreme Court of Afghanistan, rely on Islamic law directly. The government is declared to be secular in the constitution. Article 2 of Bahrain's 2002 Constitution as originally adopted, as well as after February 2012 amendment, declares Islamic Sharia is a chief source of legislation. Four tiers of ordinary courts have jurisdiction over cases related to civil, administrative and criminal matters, with Court of Cassation the highest civil court in Bahrain; in all matters, the judges are required to resort to Sharia