PHP-CS fixer passed
This commit is contained in:
@@ -50,8 +50,8 @@ interface ParserInterface
|
|||||||
*
|
*
|
||||||
* @param int $templateType the template type (
|
* @param int $templateType the template type (
|
||||||
*
|
*
|
||||||
* @param string $templateName the template name
|
* @param string $templateName the template name
|
||||||
* @param string $templateDirectory path to the template dirtectory
|
* @param string $templateDirectory path to the template dirtectory
|
||||||
* @param string $key ???
|
* @param string $key ???
|
||||||
* @param bool $unshift ??? Etienne ?
|
* @param bool $unshift ??? Etienne ?
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ use Thelia\Core\Template\ParserContext;
|
|||||||
use Thelia\Core\Template\ParserInterface;
|
use Thelia\Core\Template\ParserInterface;
|
||||||
use Thelia\Core\Template\Smarty\AbstractSmartyPlugin;
|
use Thelia\Core\Template\Smarty\AbstractSmartyPlugin;
|
||||||
use Thelia\Core\Template\Smarty\SmartyPluginDescriptor;
|
use Thelia\Core\Template\Smarty\SmartyPluginDescriptor;
|
||||||
use Thelia\Core\Template\TemplateHelper;
|
|
||||||
use Thelia\Form\BaseForm;
|
use Thelia\Form\BaseForm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -118,16 +118,16 @@ abstract class BaseForm
|
|||||||
* Thus, it should not be included in the form hidden fields generated by form_hidden_fields
|
* 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.
|
* Smarty function, to prevent it from exiting twice in the form.
|
||||||
*
|
*
|
||||||
* @param FormView $fieldView
|
* @param FormView $fieldView
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isTemplateDefinedHiddenField($fieldView) {
|
public function isTemplateDefinedHiddenField($fieldView)
|
||||||
|
{
|
||||||
$name = $fieldView->vars['name'];
|
$name = $fieldView->vars['name'];
|
||||||
|
|
||||||
return $name == 'success_url' || $name == 'error_message';
|
return $name == 'success_url' || $name == 'error_message';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getRequest()
|
public function getRequest()
|
||||||
{
|
{
|
||||||
return $this->request;
|
return $this->request;
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
namespace Thelia\Form\Brand;
|
namespace Thelia\Form\Brand;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\GreaterThan;
|
use Symfony\Component\Validator\Constraints\GreaterThan;
|
||||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\Form\StandardDescriptionFieldsTrait;
|
use Thelia\Form\StandardDescriptionFieldsTrait;
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Form\Image;
|
namespace Thelia\Form\Image;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\Form\BaseForm;
|
use Thelia\Form\BaseForm;
|
||||||
use Thelia\Form\StandardDescriptionFieldsTrait;
|
use Thelia\Form\StandardDescriptionFieldsTrait;
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
namespace Thelia\Form\Image;
|
namespace Thelia\Form\Image;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\Image;
|
use Symfony\Component\Validator\Constraints\Image;
|
||||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\Form\BaseForm;
|
use Thelia\Form\BaseForm;
|
||||||
use Thelia\Form\StandardDescriptionFieldsTrait;
|
use Thelia\Form\StandardDescriptionFieldsTrait;
|
||||||
|
|||||||
@@ -97,4 +97,4 @@ trait SeoFieldsTrait
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user