Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/translation/Loader/CsvFileLoader.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 |
line wrap: on
line diff
--- a/vendor/symfony/translation/Loader/CsvFileLoader.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/translation/Loader/CsvFileLoader.php Thu Feb 28 13:21:36 2019 +0000 @@ -29,7 +29,7 @@ */ protected function loadResource($resource) { - $messages = array(); + $messages = []; try { $file = new \SplFileObject($resource, 'rb'); @@ -41,7 +41,7 @@ $file->setCsvControl($this->delimiter, $this->enclosure, $this->escape); foreach ($file as $data) { - if ('#' !== substr($data[0], 0, 1) && isset($data[1]) && 2 === count($data)) { + if ('#' !== substr($data[0], 0, 1) && isset($data[1]) && 2 === \count($data)) { $messages[$data[0]] = $data[1]; } }