@@ -6,34 +6,34 @@ |
||
| 6 | 6 | interface AkismetService { |
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | - * Check if the comment is spam or not |
|
| 10 | - * This is basically the core of everything. This call takes a number of |
|
| 11 | - * arguments and characteristics about the submitted content and then |
|
| 12 | - * returns a thumbs up or thumbs down. |
|
| 13 | - * Almost everything is optional, but performance can drop dramatically if |
|
| 14 | - * you exclude certain elements. |
|
| 15 | - * REMARK: If you are having trouble triggering you can send |
|
| 16 | - * "viagra-test-123" as the author and it will trigger a true response, |
|
| 17 | - * always. |
|
| 18 | - * |
|
| 19 | - * @param string[optional] $content The content that was submitted. |
|
| 20 | - * @param string[optional] $author The name. |
|
| 21 | - * @param string[optional] $email The email address. |
|
| 22 | - * @param string[optional] $url The URL. |
|
| 23 | - * @param string[optional] $permalink The permanent location of the entry |
|
| 24 | - * the comment was submitted to. |
|
| 25 | - * @param string[optional] $type The type, can be blank, comment, |
|
| 26 | - * trackback, pingback, or a made up |
|
| 27 | - * value like "registration". |
|
| 28 | - * @return bool If the comment is spam true will be |
|
| 29 | - * returned, otherwise false. |
|
| 30 | - */ |
|
| 31 | - public function isSpam( |
|
| 32 | - $content, |
|
| 33 | - $author = null, |
|
| 34 | - $email = null, |
|
| 35 | - $url = null, |
|
| 36 | - $permalink = null, |
|
| 37 | - $type = null |
|
| 38 | - ); |
|
| 9 | + * Check if the comment is spam or not |
|
| 10 | + * This is basically the core of everything. This call takes a number of |
|
| 11 | + * arguments and characteristics about the submitted content and then |
|
| 12 | + * returns a thumbs up or thumbs down. |
|
| 13 | + * Almost everything is optional, but performance can drop dramatically if |
|
| 14 | + * you exclude certain elements. |
|
| 15 | + * REMARK: If you are having trouble triggering you can send |
|
| 16 | + * "viagra-test-123" as the author and it will trigger a true response, |
|
| 17 | + * always. |
|
| 18 | + * |
|
| 19 | + * @param string[optional] $content The content that was submitted. |
|
| 20 | + * @param string[optional] $author The name. |
|
| 21 | + * @param string[optional] $email The email address. |
|
| 22 | + * @param string[optional] $url The URL. |
|
| 23 | + * @param string[optional] $permalink The permanent location of the entry |
|
| 24 | + * the comment was submitted to. |
|
| 25 | + * @param string[optional] $type The type, can be blank, comment, |
|
| 26 | + * trackback, pingback, or a made up |
|
| 27 | + * value like "registration". |
|
| 28 | + * @return bool If the comment is spam true will be |
|
| 29 | + * returned, otherwise false. |
|
| 30 | + */ |
|
| 31 | + public function isSpam( |
|
| 32 | + $content, |
|
| 33 | + $author = null, |
|
| 34 | + $email = null, |
|
| 35 | + $url = null, |
|
| 36 | + $permalink = null, |
|
| 37 | + $type = null |
|
| 38 | + ); |
|
| 39 | 39 | } |