REFACTORING #1880 @4h30m: another ugly refactoring commit

This commit is contained in:
Michal Kváček
2016-10-25 16:50:04 +02:00
parent 28f67ffe3c
commit cc999dd24e
71 changed files with 827 additions and 608 deletions
@@ -24,7 +24,7 @@ class Presenter implements WidgetRenderer
if (!$form)
return null;
$formData = json_decode($form->module_settings);
$formData = json_decode($form->moduleSettings);
$code = '<div class="address-widget ' . e($widget->container_class) . '"';
if ($widget->container_id) {
@@ -47,7 +47,7 @@ class Presenter implements WidgetRenderer
*/
public static function renderAddForm(WidgetType $type)
{
$contactForms = Content::where('module_handler', config('contactform.handler'))
$contactForms = Content::where('moduleHandler', config('contactform.handler'))
->get();
return view('contactform::admin.widgets.address.new', [
@@ -66,7 +66,7 @@ class Presenter implements WidgetRenderer
*/
public static function renderEditForm(Widget $widget)
{
$contactForms = Content::where('module_handler', config('contactform.handler'))
$contactForms = Content::where('moduleHandler', config('contactform.handler'))
->get();
return view('contactform::admin.widgets.address.edit', [
'widget' => $widget,
@@ -32,7 +32,7 @@ class Presenter implements WidgetRenderer
return null;
}
$form->module_settings = json_decode($form->module_settings);
$form->moduleSettings = json_decode($form->moduleSettings);
return view(self::$template, ['widget' => $widget, 'form' => $form]);
}
@@ -46,7 +46,7 @@ class Presenter implements WidgetRenderer
*/
public static function renderAddForm(WidgetType $type)
{
$contactForms = Content::where('module_handler', config('contactform.handler'))
$contactForms = Content::where('moduleHandler', config('contactform.handler'))
->get();
return view('contactform::admin.widgets.form.new', [
@@ -65,7 +65,7 @@ class Presenter implements WidgetRenderer
*/
public static function renderEditForm(Widget $widget)
{
$contactForms = Content::where('module_handler', config('contactform.handler'))
$contactForms = Content::where('moduleHandler', config('contactform.handler'))
->get();
return view('contactform::admin.widgets.address.edit', [
'widget' => $widget,