comparison vendor/symfony/translation/Formatter/MessageFormatter.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
29 } 29 }
30 30
31 /** 31 /**
32 * {@inheritdoc} 32 * {@inheritdoc}
33 */ 33 */
34 public function format($message, $locale, array $parameters = array()) 34 public function format($message, $locale, array $parameters = [])
35 { 35 {
36 return strtr($message, $parameters); 36 return strtr($message, $parameters);
37 } 37 }
38 38
39 /** 39 /**
40 * {@inheritdoc} 40 * {@inheritdoc}
41 */ 41 */
42 public function choiceFormat($message, $number, $locale, array $parameters = array()) 42 public function choiceFormat($message, $number, $locale, array $parameters = [])
43 { 43 {
44 $parameters = array_merge(array('%count%' => $number), $parameters); 44 $parameters = array_merge(['%count%' => $number], $parameters);
45 45
46 return $this->format($this->selector->choose($message, (int) $number, $locale), $locale, $parameters); 46 return $this->format($this->selector->choose($message, (int) $number, $locale), $locale, $parameters);
47 } 47 }
48 } 48 }