public function formatPercentEvolution($value)
    {
        $isPositiveEvolution = !empty($value) && ($value > 0 || $value[0] == '+');

        $formatted = self::formatPercent($value);

        if ($isPositiveEvolution) {
            // $this->symbols has already been initialized from formatPercent().
            $language = $this->translator->getCurrentLanguage();
            return $this->symbols[$language]['+'] . $formatted;
        }
        return $formatted;
    }
public function formatPercentEvolution($value)
    {
        $isPositiveEvolution = !empty($value) && ($value > 0 || $value[0] == '+');

        $formatted = self::formatPercent($value);

        if ($isPositiveEvolution) {
            // $this->symbols has already been initialized from formatPercent().
            $language = $this->translator->getCurrentLanguage();
            return $this->symbols[$language]['+'] . $formatted;
        }
        return $formatted;
    }
public function formatPercentEvolution ( $ value ) { $ isPositiveEvolution = ! empty ( $ value ) && ( $ value > 0 || $ value [ 0 ] == '+' ) ; $ formatted = self :: formatPercent ( $ value ) ; if ( $ isPositiveEvolution ) { // $this->symbols has already been initialized from formatPercent(). $ language = $ this -> translator -> getCurrentLanguage ( ) ; return $ this -> symbols [ $ language ] [ '+' ] . $ formatted ; } return $ formatted ; }
Formats given number as percent value, but keep the leading + sign if found

@param $value
@return string
Formats given number as percent value but keep the leading + sign if found