Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/translation/Dumper/JsonFileDumper.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
21 class JsonFileDumper extends FileDumper | 21 class JsonFileDumper extends FileDumper |
22 { | 22 { |
23 /** | 23 /** |
24 * {@inheritdoc} | 24 * {@inheritdoc} |
25 */ | 25 */ |
26 public function formatCatalogue(MessageCatalogue $messages, $domain, array $options = array()) | 26 public function formatCatalogue(MessageCatalogue $messages, $domain, array $options = []) |
27 { | 27 { |
28 if (isset($options['json_encoding'])) { | 28 if (isset($options['json_encoding'])) { |
29 $flags = $options['json_encoding']; | 29 $flags = $options['json_encoding']; |
30 } else { | 30 } else { |
31 $flags = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0; | 31 $flags = \defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0; |
32 } | 32 } |
33 | 33 |
34 return json_encode($messages->all($domain), $flags); | 34 return json_encode($messages->all($domain), $flags); |
35 } | 35 } |
36 | 36 |