From 6c1e45276bde1897ec36bed2a0da33f15db83026 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 8 Jul 2014 10:33:47 +0200 Subject: [PATCH] PHP-CS fixer passed --- core/lib/Thelia/Core/Template/ParserInterface.php | 4 ++-- core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php | 1 - core/lib/Thelia/Form/BaseForm.php | 6 +++--- core/lib/Thelia/Form/Brand/BrandModificationForm.php | 1 - core/lib/Thelia/Form/Image/DocumentModification.php | 1 - core/lib/Thelia/Form/Image/ImageModification.php | 1 - core/lib/Thelia/Form/SeoFieldsTrait.php | 2 +- 7 files changed, 6 insertions(+), 10 deletions(-) diff --git a/core/lib/Thelia/Core/Template/ParserInterface.php b/core/lib/Thelia/Core/Template/ParserInterface.php index 4eff151e4..dfb312499 100644 --- a/core/lib/Thelia/Core/Template/ParserInterface.php +++ b/core/lib/Thelia/Core/Template/ParserInterface.php @@ -50,8 +50,8 @@ interface ParserInterface * * @param int $templateType the template type ( * - * @param string $templateName the template name - * @param string $templateDirectory path to the template dirtectory + * @param string $templateName the template name + * @param string $templateDirectory path to the template dirtectory * @param string $key ??? * @param bool $unshift ??? Etienne ? */ diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php index 7322537b9..b280529a9 100644 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php @@ -24,7 +24,6 @@ use Thelia\Core\Template\ParserContext; use Thelia\Core\Template\ParserInterface; use Thelia\Core\Template\Smarty\AbstractSmartyPlugin; use Thelia\Core\Template\Smarty\SmartyPluginDescriptor; -use Thelia\Core\Template\TemplateHelper; use Thelia\Form\BaseForm; /** diff --git a/core/lib/Thelia/Form/BaseForm.php b/core/lib/Thelia/Form/BaseForm.php index 716c08ff8..08c5dfce1 100644 --- a/core/lib/Thelia/Form/BaseForm.php +++ b/core/lib/Thelia/Form/BaseForm.php @@ -118,16 +118,16 @@ abstract class BaseForm * Thus, it should not be included in the form hidden fields generated by form_hidden_fields * Smarty function, to prevent it from exiting twice in the form. * - * @param FormView $fieldView + * @param FormView $fieldView * @return bool */ - public function isTemplateDefinedHiddenField($fieldView) { + public function isTemplateDefinedHiddenField($fieldView) + { $name = $fieldView->vars['name']; return $name == 'success_url' || $name == 'error_message'; } - public function getRequest() { return $this->request; diff --git a/core/lib/Thelia/Form/Brand/BrandModificationForm.php b/core/lib/Thelia/Form/Brand/BrandModificationForm.php index b7671cd7a..29c07de44 100644 --- a/core/lib/Thelia/Form/Brand/BrandModificationForm.php +++ b/core/lib/Thelia/Form/Brand/BrandModificationForm.php @@ -13,7 +13,6 @@ namespace Thelia\Form\Brand; use Symfony\Component\Validator\Constraints\GreaterThan; -use Symfony\Component\Validator\Constraints\NotBlank; use Thelia\Core\Translation\Translator; use Thelia\Form\StandardDescriptionFieldsTrait; diff --git a/core/lib/Thelia/Form/Image/DocumentModification.php b/core/lib/Thelia/Form/Image/DocumentModification.php index 62b5750e0..2100b913f 100644 --- a/core/lib/Thelia/Form/Image/DocumentModification.php +++ b/core/lib/Thelia/Form/Image/DocumentModification.php @@ -12,7 +12,6 @@ namespace Thelia\Form\Image; -use Symfony\Component\Validator\Constraints\NotBlank; use Thelia\Core\Translation\Translator; use Thelia\Form\BaseForm; use Thelia\Form\StandardDescriptionFieldsTrait; diff --git a/core/lib/Thelia/Form/Image/ImageModification.php b/core/lib/Thelia/Form/Image/ImageModification.php index d53fe84f6..38d0ed836 100644 --- a/core/lib/Thelia/Form/Image/ImageModification.php +++ b/core/lib/Thelia/Form/Image/ImageModification.php @@ -13,7 +13,6 @@ namespace Thelia\Form\Image; use Symfony\Component\Validator\Constraints\Image; -use Symfony\Component\Validator\Constraints\NotBlank; use Thelia\Core\Translation\Translator; use Thelia\Form\BaseForm; use Thelia\Form\StandardDescriptionFieldsTrait; diff --git a/core/lib/Thelia/Form/SeoFieldsTrait.php b/core/lib/Thelia/Form/SeoFieldsTrait.php index 6609ee198..efba8567b 100644 --- a/core/lib/Thelia/Form/SeoFieldsTrait.php +++ b/core/lib/Thelia/Form/SeoFieldsTrait.php @@ -97,4 +97,4 @@ trait SeoFieldsTrait ] ); } -} \ No newline at end of file +}