replaced PHP syntax by valid lua code