private function checkAkismet(SiteConfig $siteConfig)
    {
        try {
            $akismet = new Akismet(Director::absoluteBaseURL(), $siteConfig->AkismetKey);
            $akismet->setCommentAuthor($this->Name);
            $akismet->setCommentContent($this->Comment);
            $akismet->setCommentAuthorEmail($this->Email);
            $akismet->setCommentAuthorURL($this->URL);
            $result = (int)$akismet->isCommentSpam();
            if ($result) {
                $this->AkismetMarked = true;
                $this->Visible = false;
            }
        } catch (Exception $e) {
            /**
             * Akismet didn't work, most likely the service is down.
             * Just to be on the safe side, we hide this comment.
             */
            $this->Visible = false;
        }
    }
private function checkAkismet(SiteConfig $siteConfig)
    {
        try {
            $akismet = new Akismet(Director::absoluteBaseURL(), $siteConfig->AkismetKey);
            $akismet->setCommentAuthor($this->Name);
            $akismet->setCommentContent($this->Comment);
            $akismet->setCommentAuthorEmail($this->Email);
            $akismet->setCommentAuthorURL($this->URL);
            $result = (int)$akismet->isCommentSpam();
            if ($result) {
                $this->AkismetMarked = true;
                $this->Visible = false;
            }
        } catch (Exception $e) {
            /**
             * Akismet didn't work, most likely the service is down.
             * Just to be on the safe side, we hide this comment.
             */
            $this->Visible = false;
        }
    }
private function checkAkismet ( SiteConfig $ siteConfig ) { try { $ akismet = new Akismet ( Director :: absoluteBaseURL ( ) , $ siteConfig -> AkismetKey ) ; $ akismet -> setCommentAuthor ( $ this -> Name ) ; $ akismet -> setCommentContent ( $ this -> Comment ) ; $ akismet -> setCommentAuthorEmail ( $ this -> Email ) ; $ akismet -> setCommentAuthorURL ( $ this -> URL ) ; $ result = ( int ) $ akismet -> isCommentSpam ( ) ; if ( $ result ) { $ this -> AkismetMarked = true ; $ this -> Visible = false ; } } catch ( Exception $ e ) { /**
             * Akismet didn't work, most likely the service is down.
             * Just to be on the safe side, we hide this comment.
             */ $ this -> Visible = false ; } }
If we have Akismet configured, check if this comment should be marked as spam.
Or ham. Or bacon. Or steak! Steak would be good!

@param SiteConfig $siteConfig
If we have Akismet configured check if this comment should be marked as spam . Or ham . Or bacon . Or steak! Steak would be good!