Typo in `class.api.php`

`Formart` on line 389 should be `Format`