From eb3f978c968ef9d2cb01baf1da6104834607a561 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 27 Aug 2019 13:41:59 +0300 Subject: [PATCH] feat(core): cleanup Forms #218 #186 --- flextype/core/Forms.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flextype/core/Forms.php b/flextype/core/Forms.php index 9d3edfdc..5f605f95 100644 --- a/flextype/core/Forms.php +++ b/flextype/core/Forms.php @@ -195,9 +195,9 @@ class Forms protected function templateSelectField($name, $options, $value, $property) { - $_templates_list = $this->flextype['themes']->getTemplates($this->flextype['registry']->get('settings.theme')); + $_templates_list = $this->flextype['themes']->getTemplates($this->flextype['registry']->get('settings.theme')); - $options = []; + $options = []; if (count($_templates_list) > 0) { foreach ($_templates_list as $template) { @@ -209,9 +209,7 @@ class Forms } } - $form_element = Form::select($name, $options, $value, $property['attributes']); - - return $form_element; + return Form::select($name, $options, $value, $property['attributes']); } protected function selectField($name, $options, $value, $property)