Complex sentence: One of the places the punishments were provided for was the Philippine legal system, as a result of the Spanish Penal Code of 1870, which was adopted because it was a Spanish colony until 1898.
Split into simpler sentences: One of the places these punishments were provided for was the Philippine legal system. This was a result of the Spanish Penal Code of 1870, which was adopted due to the country having been a Spanish colony until 1898.