# give/4.16.9/src/DonationSpam/Akismet/API.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 22 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationSpam/Akismet/API.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/DonationSpam/Akismet/API.php
- Modified: 2024-08-14T19:11:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationSpam/Akismet/API.php#L10-L20`.

```php
<?php

namespace Give\DonationSpam\Akismet;

use Akismet;
use Give\DonationSpam\Akismet\DataTransferObjects\CommentCheckArgs;

/**
 * @since 3.15.0
 */
class API
{
    /**
     * @since 3.15.0
     */
    public function commentCheck(CommentCheckArgs $args): array
    {
        // @phpstan-ignore class.notFound
        return Akismet::http_post($args->toHttpQuery(), 'comment-check');
    }
}

```
