Completed
Push — master ( a13ea2...c5b17a )
by Maxime
07:40
created

helpers.php ➔ form_rest_view()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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