/**
* Return true if validate() can be used
+ * @return bool
*/
public function supportsValidate() {
return false;
*
* @param string $text
* @param string &$errorStr Return the error string
+ * @throws \MWException
* @return bool Whether the HTML is valid
*/
public function validate( $text, &$errorStr ) {
- throw new \MWException( get_class( $this ) . " does not support validate()" );
+ throw new \MWException( static::class . ' does not support validate()' );
}
/**