Gets the formal salutation of the applicant

@return string
334113
protected function getFormalSalutation()
    {
        $contact = $this->application->getContact();
        $name    = $contact->getLastName();
        $gender  = $contact->getGender();
        $translator = $this->getTranslator();
        
        $salutation = 'male' == $gender
                    ? $translator->translate('Dear Mr. %s')
                    : $translator->translate('Dear Ms. %s');
        
        return sprintf($salutation, $name);
    }
1157695
public function getGreetingNL()
    {
        $genderGreetings = $this->util->getTranslated()->getGenderGreeting($this->getLanguage());

        $greeting = $genderGreetings[$this->_gemsData['grs_gender']];

        return $greeting . ' ' . ucfirst($this->getLastName());
    }
437301
public function toString()
    {
        if (empty($this->headerSigners) && empty($this->bodySigners)) {
            return parent::toString();
        }

        $this->saveMessage();

        $this->doSign();

        $string = parent::toString();

        $this->restoreMessage();

        return $string;
    }
426969
public function getName()
    {
        if (!$this->isEmpty($this->name)) {
            return $this->name;
        }

        foreach (['getName', 'getOriginalName'] as $fn) {
            $name = call_user_func([$this->event, $fn]);

            if ($this->isEmpty($name) || $name === $this) {
                continue;
            }

            if ($name instanceof self) {
                return $name = $name->getName();
            }
        }

        return $this->name = $this->parseEventName();
    }
1316905
public function getShowTitle()
    {
        $user = $this->getSelectedUser();

        if ($user) {
            return sprintf($this->_('Show staff member %s'), $user->getLoginName());
        }

        return parent::getShowTitle();
    }
851277
public String greeting() {
    int current = counter.getAndAdd(1);

    if (current % 2 != 0) {
      return format("Hello Rollbar number %d", current);
    }
    throw new RuntimeException("Fatal error at greeting number: " + current);
  }
810001
public function get_title() {
        $str = '';

        if (isset($this->refno_t)) {
            $str = $this->refno_t;

            if (isset($this->altrefno_t)) {
                $str .= ' / ' . $this->altrefno_t;
            }
        }

        return $str;
    }
939177
public function getUserAgent(): string
    {
        $userAgent = 'Swoft/' . App::version();
        $userAgent .= ' Swoft/' . SWOOLE_VERSION;
        $userAgent .= ' PHP/' . PHP_VERSION;
        return $userAgent;
    }
441726
public function getReceivedText()
    {
        if ($this->isUserMessage()) {
            return isset($this->message->text) ? $this->message->text : '';
        }

        return '';
    }
664682
protected function acceptableFormatted()
    {
        if (!is_array($this->acceptable)) {
            return '';
        }

        $acceptable = array_map([$this, 'acceptableItemFormatted'], $this->acceptable);

        return '[' . implode('/', $acceptable) . ']';
    }
1342759
public function getAgenciaCodigoBeneficiario()
    {
        $agencia = $this->getAgenciaDv() !== null ? $this->getAgencia() . '-' . $this->getAgenciaDv() : $this->getAgencia();
        $codigoCliente = $this->getCodigoCliente();

        return $agencia . ' / ' . $codigoCliente;
    }
1230534
protected function assembleIdentification() {
		if ($this->username === null) {
			return '';
		}
		
		if ($this->password === null) {
			return $this->username . '@';
		}
		
		return $this->username . ':' . $this->password . '@';
	}
1174607
public function getCepCidadeUf()
    {
        $dados = array_filter(array($this->getCep(), $this->getCidade(), $this->getUf()));
        return implode(' - ', $dados);
    }
1317517
public function getPlural()
    {
        $singular = $this->getSingular();
        if (preg_match('/y$/', $singular)) {
            return preg_replace('/y$/', 'ies', $singular);
        }
        return (is_null($this->plural))
            ? Str::human($singular) . 's'
            : $this->plural;
    }
810660
public function getGuestList()
    {
        $reservationClass = Reservation::singleton()->getClassName();
        $attendeeClass = Attendee::singleton()->getClassName();
        return Attendee::get()
            ->leftJoin($reservationClass, "`$attendeeClass`.`ReservationID` = `$reservationClass`.`ID`")
            ->filter(array(
                'EventID' => $this->owner->ID
            ))
            ->filterAny(array(
                'ReservationID' => 0,
                'Status' => Reservation::STATUS_PAID
            ));
    }
312395
public function getFormatted(): string
    {
        return $this->format(
            [
                $this->getTitle(),
                $this->getFirstName(),
                $this->format($this->middleNames),
                $this->getLastName(),
                $this->getSuffix(),
            ]
        );
    }
114079
public function getRespondentGenderHello()
    {
        $greetings = $this->util->getTranslated()->getGenderGreeting();
        $gender    = $this->getRespondentGender();

        if (isset($greetings[$gender])) {
            return $greetings[$gender];
        }
    }