private function setGlobalAddress(MailerContract $mailer, string $type): void
    {
        if (! isset($this->resolvedOptions[$type])) {
            return;
        }

        $address = $this->resolvedOptions[$type];

        if (\is_array($address) && isset($address['address'])) {
            $mailer->{'always' . Str::studly($type)}($address['address'], $address['name']);
        }
    }
private function setGlobalAddress(MailerContract $mailer, string $type): void
    {
        if (! isset($this->resolvedOptions[$type])) {
            return;
        }

        $address = $this->resolvedOptions[$type];

        if (\is_array($address) && isset($address['address'])) {
            $mailer->{'always' . Str::studly($type)}($address['address'], $address['name']);
        }
    }
private function setGlobalAddress ( MailerContract $ mailer , string $ type ) : void { if ( ! isset ( $ this -> resolvedOptions [ $ type ] ) ) { return ; } $ address = $ this -> resolvedOptions [ $ type ] ; if ( \ is_array ( $ address ) && isset ( $ address [ 'address' ] ) ) { $ mailer -> { 'always' . Str :: studly ( $ type ) } ( $ address [ 'address' ] , $ address [ 'name' ] ) ; } }
Set a global address on the mailer by type.

@param \Viserio\Component\Contract\Mail\Mailer $mailer
@param string                                  $type

@return void
Set a global address on the mailer by type .