Fixed code style issues in flag.api.php.