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;
    }
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;
    }
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 ; }
Cleans summary response values.

@param stdClass $summary The summary response to clean.

@return stdClass
Cleans summary response values .