ParseError thrown

syntax error, unexpected 'return' (T_RETURN), expecting function (T_FUNCTION) or const (T_CONST)