public function compileFromName(string $fromName = null): string
    {
        $settings = Plugin::getInstance()->getSettings();
        return $settings->prependSender.($settings->prependSender && $fromName ? ' ' : '').$fromName;
    }
public function compileFromName(string $fromName = null): string
    {
        $settings = Plugin::getInstance()->getSettings();
        return $settings->prependSender.($settings->prependSender && $fromName ? ' ' : '').$fromName;
    }
public function compileFromName ( string $ fromName = null ) : string { $ settings = Plugin :: getInstance ( ) -> getSettings ( ) ; return $ settings -> prependSender . ( $ settings -> prependSender && $ fromName ? ' ' : '' ) . $ fromName ; }
Compiles the "From" name value from the submitted name.

@param string|null $fromName
@return string
Compiles the From name value from the submitted name .