protected function cleanSummary(stdClass $summary): stdClass
    {
        $properties = ['sm_api_title', 'sm_api_content'];
        foreach ($properties as $property) {
            if (!property_exists($summary, $property)) {
                continue;
            }

            $summary->$property = trim($summary->$property);
        }

        return $summary;
    }