From 47b8c3ef3ef6439e48d3305db0cbdd873eb769ee Mon Sep 17 00:00:00 2001 From: Abdellatif Ait boudad Date: Fri, 23 Oct 2015 09:43:05 +0000 Subject: [PATCH] [Translation][Csv file] remove unnecessary statements, for better readability. --- .../Component/Translation/Loader/CsvFileLoader.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Symfony/Component/Translation/Loader/CsvFileLoader.php b/src/Symfony/Component/Translation/Loader/CsvFileLoader.php index ee9224d2ba..22401797ac 100644 --- a/src/Symfony/Component/Translation/Loader/CsvFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/CsvFileLoader.php @@ -51,18 +51,8 @@ class CsvFileLoader extends ArrayLoader $file->setCsvControl($this->delimiter, $this->enclosure, $this->escape); foreach ($file as $data) { - if (substr($data[0], 0, 1) === '#') { - continue; - } - - if (!isset($data[1])) { - continue; - } - - if (count($data) == 2) { + if ('#' !== substr($data[0], 0, 1) && isset($data[1]) && 2 === count($data)) { $messages[$data[0]] = $data[1]; - } else { - continue; } }