WoohooLabs\Yin\JsonApi\Negotiation\AbstractMessageValidator::lintMessage PHP Method

lintMessage() protected method

protected lintMessage ( string $message ) : string
$message string
return string
    protected function lintMessage($message)
    {
        if (empty($message)) {
            return "";
        }
        $linter = new JsonParser();
        $result = $linter->lint($message);
        if ($result instanceof ParsingException) {
            return $result->getMessage();
        }
        return "";
    }