public function keyCheck($apiKey = null, $url = null)
    {
        if ($apiKey === null || $url === null) {
            throw new InvalidArgumentException('Both apiKey and site URL cannot be null');
        }

        return $this->connection->keyCheck($apiKey, $url);
    }
public function keyCheck($apiKey = null, $url = null)
    {
        if ($apiKey === null || $url === null) {
            throw new InvalidArgumentException('Both apiKey and site URL cannot be null');
        }

        return $this->connection->keyCheck($apiKey, $url);
    }
public function keyCheck ( $ apiKey = null , $ url = null ) { if ( $ apiKey === null || $ url === null ) { throw new InvalidArgumentException ( 'Both apiKey and site URL cannot be null' ) ; } return $ this -> connection -> keyCheck ( $ apiKey , $ url ) ; }
Allows to manually check if API key is valid or not

@param string $apiKey Akismet API key
@param string $url    The front page or home URL of the instance making the request

@throws InvalidArgumentException
@return boolean
Allows to manually check if API key is valid or not