It looks like this ended because they moved to permanent UTC+1 now... Casablanca is at 7.6 degrees west, nearly on the border between theoretical UTC and UTC-1. I understand relations with their African neighbors aren't great, so this is presumably to synchronize with European neighbors? It looks like they do still drop back to UTC for Ramadan.
Hardly permanent. They’ll be matched with Portugal and Canary Islands most of the year rather than mainland Spain, but Spain in winter but then for Ramadan at a changing time of year they’ll match with Azores unless it’s winter when they match with Portugal.
If you want to sync with europe change at the same time as europe.