Fix cs
modifié: core/lib/Thelia/Config/Resources/export.xml modifié: core/lib/Thelia/Core/FileFormat/Formatting/AbstractFormatter.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php
This commit is contained in:
@@ -54,7 +54,7 @@ abstract class AbstractFormatter implements FormatInterface, FormatterInterface
|
|||||||
|
|
||||||
public function checkOrders(array $values)
|
public function checkOrders(array $values)
|
||||||
{
|
{
|
||||||
foreach($this->order as $order) {
|
foreach ($this->order as $order) {
|
||||||
if (!array_key_exists($order, $values)) {
|
if (!array_key_exists($order, $values)) {
|
||||||
throw new \ErrorException(
|
throw new \ErrorException(
|
||||||
$this->translator->trans(
|
$this->translator->trans(
|
||||||
|
|||||||
@@ -131,9 +131,9 @@ class CSVFormatter extends AbstractFormatter
|
|||||||
|
|
||||||
protected function formatField($value)
|
protected function formatField($value)
|
||||||
{
|
{
|
||||||
if($value === null) {
|
if ($value === null) {
|
||||||
$value = "";
|
$value = "";
|
||||||
} else if (!is_scalar($value)) {
|
} elseif (!is_scalar($value)) {
|
||||||
$value = serialize($value);
|
$value = serialize($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user