tokens: PHP is still waiting for that closing } to end your if statement which is why you are getting the unexpected end of file error .
ner_tags: B-Language O O O O O O B-Code_Block O O O O O O O O O O O O B-Error_Name I-Error_Name I-Error_Name I-Error_Name O O