/var/www/vhosts/ihelp.ro/_OLD/vendor/aura/intl/src
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/aura/intl/src/IntlFormatter.php (2333B)
$value) {
// convert an array to a CSV string
if (is_array($value)) {
$value = '"' . implode('", "', $value) . '"';
}
$values[$token] = $value;
}
try {
$formatter = new MessageFormatter($locale, $string);
if (! $formatter) {
$this->throwCannotInstantiateFormatter();
}
} catch (\Exception $e) {
$this->throwCannotInstantiateFormatter();
}
$result = $formatter->format($values);
if ($result === false) {
throw new Exception\CannotFormat(
$formatter->getErrorMessage(),
$formatter->getErrorCode()
);
}
return $result;
}
/**
*
* Throws exception
*
* @throws Exception\CannotInstantiateFormatter
*/
protected function throwCannotInstantiateFormatter()
{
throw new Exception\CannotInstantiateFormatter(
intl_get_error_message(),
intl_get_error_code()
);
}
}