lib/Mailer/Mailjet.php
protected function buildSenderField($identity)
    {
        if (null === $identity) {
            return [];
        }

        if (is_string($identity)) {
            return [
                'Email' => $identity,
            ];
        }

        $sender = [
            'Email' => $identity->getEmail(),
        ];

        if (null !== $name = $identity->getName()) {
            $sender['Name'] = $name;
        }

        return $sender;
    }
protected function buildSenderField($identity)
    {
        if (null === $identity) {
            return [];
        }

        if (is_string($identity)) {
            return [
                'Email' => $identity,
            ];
        }

        $sender = [
            'Email' => $identity->getEmail(),
        ];

        if (null !== $name = $identity->getName()) {
            $sender['Name'] = $name;
        }

        return $sender;
    }
protected function buildSenderField ( $ identity ) { if ( null === $ identity ) { return [ ] ; } if ( is_string ( $ identity ) ) { return [ 'Email' => $ identity , ] ; } $ sender = [ 'Email' => $ identity -> getEmail ( ) , ] ; if ( null !== $ name = $ identity -> getName ( ) ) { $ sender [ 'Name' ] = $ name ; } return $ sender ; }
@param IdentityInterface|string $identity

@return array
@param IdentityInterface|string $identity