Upper case in first letter, update in Model

table: membres
fields: nom, prenom
I want to update the following fields, nom, prenom, etc
So I include this in Model:

public function beforeSave($options = array()) {
if (!empty($this->data[‘membres’][‘nom’]) {
$this->data[‘membres’][‘nom’] = ucfirst($this->data[‘membres’][‘nom’]);
}
return true;
}
?, what is the proper syntax for this code?
I get this error: 2020-03-20 16:28:20 Error: [ParseError] syntax error, unexpected ‘{’ in

Note I checked but did not find an answer…
What should represent data?

Your if line has two open parentheses, and only one close.