protected function processPlaceHolders(string $message, array $context): string
    {
        if (false === strpos($message, '{')) {
            return $message;
        }

        $replacements = [];
        foreach ($context as $key => $value) {
            $replacements['{' . $key . '}'] = $this->formatValue($value);
        }

        return strtr($message, $replacements);
    }
protected function processPlaceHolders(string $message, array $context): string
    {
        if (false === strpos($message, '{')) {
            return $message;
        }

        $replacements = [];
        foreach ($context as $key => $value) {
            $replacements['{' . $key . '}'] = $this->formatValue($value);
        }

        return strtr($message, $replacements);
    }
protected function processPlaceHolders ( string $ message , array $ context ) : string { if ( false === strpos ( $ message , '{' ) ) { return $ message ; } $ replacements = [ ] ; foreach ( $ context as $ key => $ value ) { $ replacements [ '{' . $ key . '}' ] = $ this -> formatValue ( $ value ) ; } return strtr ( $ message , $ replacements ) ; }
Replace placeholders in text
@param  string $message
@param  array  $context
@return string
Replace placeholders in text