| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class CommentCheckResult extends ClientResult |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Create a result; throws if the result body isn't in the known list of responses. |
||
| 13 | * @param \GuzzleHttp\Psr7\Response $response |
||
| 14 | */ |
||
| 15 | 15 | public function __construct(\GuzzleHttp\Psr7\Response $response) |
|
| 16 | { |
||
| 17 | 15 | parent::__construct($response, [ 'true', 'false' ]); |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Does Akismet think the comment is spam? |
||
| 22 | * @return boolean |
||
| 23 | */ |
||
| 24 | 5 | public function isSpam() { |
|
| 26 | } |
||
| 27 | /** |
||
| 28 | * Is the comment blatant spam which can definitely be discarded without |
||
| 29 | * human intervention? See https://blog.akismet.com/2014/04/23/theres-a-ninja-in-your-akismet/ |
||
| 30 | * |
||
| 31 | * @return boolean |
||
| 32 | */ |
||
| 33 | 3 | public function isBlatantSpam() { |
|
| 35 | } |
||
| 36 | } |