Fix cs
supprimé: core/lib/Thelia/Controller/Admin/CustomerExportController.php modifié: core/lib/Thelia/Controller/Admin/ExportController.php modifié: core/lib/Thelia/Controller/Admin/ImportController.php modifié: core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php modifié: core/lib/Thelia/Core/Event/ImportExport.php modifié: core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilderManager.php modifié: core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilderManagerTrait.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/Exception/BadFormattedStringException.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/Formatter/XMLFormatter.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/FormatterManager.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/FormatterManagerTrait.php modifié: core/lib/Thelia/Core/Template/Loop/ImportExportType.php modifié: core/lib/Thelia/Model/Export.php modifié: core/lib/Thelia/Model/Import.php
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Controller\Admin;
|
||||
|
||||
/**
|
||||
* Class CustomerExportController
|
||||
* @package Thelia\Controller\Admin
|
||||
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
||||
*/
|
||||
class CustomerExportController extends BaseAdminController
|
||||
{
|
||||
public function newsletterSubscribers()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function customers()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function mailing()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -75,7 +75,6 @@ class ImportController extends BaseAdminController
|
||||
$errorMessage = null;
|
||||
$successMessage = null;
|
||||
|
||||
|
||||
try {
|
||||
$boundForm = $this->validateForm($form);
|
||||
|
||||
@@ -94,7 +93,6 @@ class ImportController extends BaseAdminController
|
||||
$archiveBuilderManager
|
||||
);
|
||||
|
||||
|
||||
/** @var AbstractArchiveBuilder $archiveBuilder */
|
||||
$archiveBuilder = $tools["archive_builder"];
|
||||
|
||||
@@ -305,7 +303,6 @@ class ImportController extends BaseAdminController
|
||||
return $this->getTranslator()->trans("Import successfully done");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param integer $id
|
||||
* @return Response
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
namespace Thelia\Core\DependencyInjection\Loader;
|
||||
|
||||
use Propel\Runtime\ActiveQuery\Criteria;
|
||||
use Propel\Runtime\Propel;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Config\Util\XmlUtils;
|
||||
|
||||
@@ -146,5 +146,4 @@ class ImportExport extends ActionEvent
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -141,7 +141,8 @@ class ArchiveBuilderManager
|
||||
}
|
||||
}
|
||||
|
||||
public function getMimeTypes() {
|
||||
public function getMimeTypes()
|
||||
{
|
||||
$mimeTypes = [];
|
||||
|
||||
/** @var AbstractArchiveBuilder $formatter */
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Core\FileFormat\Formatter\Exception;
|
||||
namespace Thelia\Core\FileFormat\Formatting\Exception;
|
||||
|
||||
/**
|
||||
* Class BadFormattedStringException
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace Thelia\Core\FileFormat\Formatting\Formatter;
|
||||
use Symfony\Component\DependencyInjection\SimpleXMLElement;
|
||||
use Thelia\Core\FileFormat\Formatter\Exception\BadFormattedStringException;
|
||||
use Thelia\Core\FileFormat\Formatting\Exception\BadFormattedStringException;
|
||||
use Thelia\Core\FileFormat\Formatting\AbstractFormatter;
|
||||
use Thelia\Core\FileFormat\Formatting\FormatterData;
|
||||
use Thelia\Core\FileFormat\FormatType;
|
||||
@@ -165,7 +165,8 @@ class XMLFormatter extends AbstractFormatter
|
||||
return $parent === null ? $data : $parent;
|
||||
}
|
||||
|
||||
public function getValue($name, array &$data) {
|
||||
public function getValue($name, array &$data)
|
||||
{
|
||||
$value = $data[$name];
|
||||
unset ($data[$name]);
|
||||
|
||||
@@ -175,7 +176,7 @@ class XMLFormatter extends AbstractFormatter
|
||||
/**
|
||||
* @param $rawData
|
||||
* @return array
|
||||
* @throws \Thelia\Core\FileFormat\Formatter\Exception\BadFormattedStringException
|
||||
* @throws \Thelia\Core\FileFormat\Formatting\Exception\BadFormattedStringException
|
||||
*/
|
||||
public function rawDecode($rawData)
|
||||
{
|
||||
|
||||
@@ -119,7 +119,8 @@ class FormatterManager
|
||||
return $extensions;
|
||||
}
|
||||
|
||||
public function getExtensionsByTypes($types, $withDot = false) {
|
||||
public function getExtensionsByTypes($types, $withDot = false)
|
||||
{
|
||||
$extensions = [];
|
||||
|
||||
/** @var AbstractFormatter $formatter */
|
||||
@@ -174,7 +175,8 @@ class FormatterManager
|
||||
return $selectedFormatters;
|
||||
}
|
||||
|
||||
public function getMimeTypesByTypes($types) {
|
||||
public function getMimeTypesByTypes($types)
|
||||
{
|
||||
if (!is_array($types)) {
|
||||
$types = [$types];
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ abstract class ImportExportType extends BaseI18nLoop implements PropelSearchLoop
|
||||
|
||||
} catch (\ErrorException $e) {}
|
||||
|
||||
|
||||
$loopResult->addRow($loopResultRow);
|
||||
}
|
||||
|
||||
|
||||
@@ -163,7 +163,6 @@ class Export extends BaseExport
|
||||
parent::delete($con);
|
||||
}
|
||||
|
||||
|
||||
public function hasImages(ContainerInterface $container)
|
||||
{
|
||||
if (static::$cache === null) {
|
||||
|
||||
@@ -6,13 +6,11 @@ use Exception;
|
||||
use Propel\Runtime\ActiveQuery\Criteria;
|
||||
use Propel\Runtime\Connection\ConnectionInterface;
|
||||
use Propel\Runtime\Exception\ClassNotFoundException;
|
||||
use Propel\Runtime\Exception\PropelException;
|
||||
use Propel\Runtime\Propel;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Thelia\ImportExport\Import\ImportHandler;
|
||||
use Thelia\Model\Base\Import as BaseImport;
|
||||
use Thelia\Model\ImportQuery as ChildImportQuery;
|
||||
use Thelia\Model\Map\ImportTableMap;
|
||||
|
||||
class Import extends BaseImport
|
||||
@@ -160,5 +158,4 @@ class Import extends BaseImport
|
||||
parent::delete($con);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user