updated packages

This commit is contained in:
2019-05-18 09:06:43 +00:00
parent 901d16349e
commit e9487fa58a
2025 changed files with 30366 additions and 49653 deletions

View File

@@ -61,5 +61,5 @@ interface TranslatorInterface
*
* @throws \InvalidArgumentException If the locale contains invalid characters
*/
public function trans($id, array $parameters = array(), $domain = null, $locale = null);
public function trans($id, array $parameters = [], $domain = null, $locale = null);
}

View File

@@ -41,7 +41,7 @@ trait TranslatorTrait
/**
* {@inheritdoc}
*/
public function trans($id, array $parameters = array(), $domain = null, $locale = null)
public function trans($id, array $parameters = [], $domain = null, $locale = null)
{
$id = (string) $id;
@@ -52,7 +52,7 @@ trait TranslatorTrait
$number = (float) $parameters['%count%'];
$locale = (string) $locale ?: $this->getLocale();
$parts = array();
$parts = [];
if (preg_match('/^\|++$/', $id)) {
$parts = explode('|', $id);
} elseif (preg_match_all('/(?:\|\||[^\|])++/', $id, $matches)) {
@@ -77,7 +77,7 @@ trait TranslatorTrait
)\s*(?P<message>.*?)$/xs
EOF;
$standardRules = array();
$standardRules = [];
foreach ($parts as $part) {
$part = trim(str_replace('||', '|', $part));