MenaraSolutions\Geographer\Services\Poliglottas\Russian::removeLastLetterIfNeeded PHP Method

removeLastLetterIfNeeded() private method

private removeLastLetterIfNeeded ( $template ) : string
$template
return string
    private function removeLastLetterIfNeeded($template)
    {
        if (in_array($this->getLastLetter($template), $this->removableLetters)) {
            return $this->removeLastLetter($template);
        } else {
            return $template;
        }
    }