Passed
Pull Request — master (#26)
by
unknown
04:39
created

form_rest_view()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
if (!function_exists('form_widget_view')) {
5
6
    function form_widget_view(\Distilleries\FormBuilder\Fields\FormFieldsView $formField, array $options = [])
7
    {
8
        return $formField->view($options, false, true, false);
9
    }
10
11
}
12
13
if (!function_exists('form_view')) {
14
15
    function form_view(\Distilleries\FormBuilder\FormView $form, array $options = [])
16
    {
17
        return $form->renderFormView($options);
18
    }
19
20
}
21
22
if (!function_exists('form_rest_view')) {
23
24
    function form_rest_view(\Distilleries\FormBuilder\FormView $form)
25
    {
26
        return $form->renderRestView();
27
    }
28
29
}