From 44e07f194024f9afc932f5584657b49eb40bbc38 Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Wed, 23 Jul 2014 14:46:28 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20cs=20=09modifi=C3=A9:=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20core/lib/Thelia/Config/Resources/export.xml=20=09modif?= =?UTF-8?q?i=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Thelia/Core/FileFor?= =?UTF-8?q?mat/Formatting/AbstractFormatter.php=20=09modifi=C3=A9:=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20core/lib/Thelia/Core/FileFormat/Formatting?= =?UTF-8?q?/Formatter/CSVFormatter.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Thelia/Config/Resources/export.xml | 2 +- .../Thelia/Core/FileFormat/Formatting/AbstractFormatter.php | 4 ++-- .../Core/FileFormat/Formatting/Formatter/CSVFormatter.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/lib/Thelia/Config/Resources/export.xml b/core/lib/Thelia/Config/Resources/export.xml index 897d5a0f8..29040f34f 100644 --- a/core/lib/Thelia/Config/Resources/export.xml +++ b/core/lib/Thelia/Config/Resources/export.xml @@ -37,7 +37,7 @@ Export the prices of the products excluding taxes - + Product SEO information diff --git a/core/lib/Thelia/Core/FileFormat/Formatting/AbstractFormatter.php b/core/lib/Thelia/Core/FileFormat/Formatting/AbstractFormatter.php index 92d40aa11..a6a867405 100644 --- a/core/lib/Thelia/Core/FileFormat/Formatting/AbstractFormatter.php +++ b/core/lib/Thelia/Core/FileFormat/Formatting/AbstractFormatter.php @@ -31,7 +31,7 @@ abstract class AbstractFormatter implements FormatInterface, FormatterInterface protected $logger; /** @var array */ - protected $order; + protected $order; public function __construct() { @@ -54,7 +54,7 @@ abstract class AbstractFormatter implements FormatInterface, FormatterInterface public function checkOrders(array $values) { - foreach($this->order as $order) { + foreach ($this->order as $order) { if (!array_key_exists($order, $values)) { throw new \ErrorException( $this->translator->trans( diff --git a/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php b/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php index fc526bb0f..b8ef4b69d 100644 --- a/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php +++ b/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php @@ -131,9 +131,9 @@ class CSVFormatter extends AbstractFormatter protected function formatField($value) { - if($value === null) { + if ($value === null) { $value = ""; - } else if (!is_scalar($value)) { + } elseif (!is_scalar($value)) { $value = serialize($value); }