replaced braces with semicolumns and end[..];
phpdoc indentation