Test Failed
Pull Request — main (#21)
by
unknown
12:39 queued 09:00
created

Form   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Hafijul233\Form\Facades;
4
5
use Closure;
6
use Illuminate\Support\Facades\Facade;
7
use Illuminate\Support\HtmlString;
8
9
/**
10
 * Class Form
11
 *
12
 * @method static HtmlString model(mixed $model, array $options = [])
13
 * @method static HtmlString open(array $options = [])
14
 * @method static HtmlString hidden(string $name, mixed $value = null, array $options = [])
15
 * @method static HtmlString input(string $type, string $name, mixed $value = null, array $options = [])
16
 * @method static HtmlString getIdAttribute(string $name, array $attributes)
17
 * @method static HtmlString getValueAttribute(string $name, string $value = null)
18
 * @method static HtmlString token()
19
 * @method static HtmlString close()
20
 * @method static HtmlString label(string $name, string $title = null, bool $required = false, array $options = [], bool $escape_html = true)
21
 * @method static HtmlString text(string $name, string $value = null, array $options = [])
22
 * @method static HtmlString password(string $name, array $options = [])
23
 * @method static HtmlString range(string $name, string $value = null, array $options = [])
24
 * @method static HtmlString search(string $name, string $value = null, array $options = [])
25
 * @method static HtmlString email(string $name, string $value = null, array $options = [])
26
 * @method static HtmlString tel(string $name, string $value = null, array $options = [])
27
 * @method static HtmlString url(string $name, string $value = null, array $options = [])
28
 * @method static HtmlString number(string $name, string $value = null, array $options = [])
29
 * @method static HtmlString textarea(string $name, string $value = null, array $options = [])
30
 * @method static HtmlString file(string $name, array $options = [])
31
 * @method static HtmlString date(string $name, string $value = null, array $options = [])
32
 * @method static HtmlString error(string $name, bool $all = false, array $options = [])
33
 * @method static HtmlString datetime(string $name, string $value = null, array $options = [])
34
 * @method static HtmlString datetimeLocal(string $name, string $value = null, array $options = [])
35
 * @method static HtmlString time(string $name, string $value = null, array $options = [])
36
 * @method static HtmlString week(string $name, string $value = null, array $options = [])
37
 * @method static HtmlString selectRange(string $name, string $begin, string $end, string $selected = null, array $options = [])
38
 * @method static HtmlString select(string $name, array $list = [], string $selected = null, array $selectAttributes = [], array $optionsAttributes = [], array $optgroupsAttributes = [])
39
 * @method static HtmlString selectYear(string $name, string $begin, string $end, string $selected = null, array $options = [])
40
 * @method static HtmlString selectMonth(string $name, string $selected = null, string $format = '%B', array $options = [])
41
 * @method static HtmlString checkbox(string $name, mixed $value = 1, bool $checked = null, array $options = [])
42
 * @method static HtmlString radio(string $name, mixed $value = 1, bool $checked = null, array $options = [])
43
 * @method static HtmlString reset(string $value, array $attributes = [])
44
 * @method static HtmlString image(string $url, string $name = null, array $attributes = [])
45
 * @method static HtmlString month(string $name, string $value = null, array $options = [])
46
 * @method static HtmlString color(string $name, string $value = null, array $options = [])
47
 * @method static HtmlString submit(string $name = 'submit', string $value = null, bool $button = false, array $options = [])
48
 * @method static HtmlString button(string $value = null, array $options = [])
49
 * @method static HtmlString datalist(string $id, array $list = [])
50
 * @method static HtmlString component(string $name, string $view, array $attributes)
51
 * @method static HtmlString macro(string $name, Closure $function)
52
 *
53
 * // macros
54
 * @method static HtmlString  hLabel(string $name, string $title, bool $required = false, array $options = ['col_size' => 2])
55
 * @method static HtmlString  fLabel(string $name, string $title, bool $required = false, array $options = ['col_size' => 2])
56
 *
57
 * @see \Hafijul233\Form\Builders\FormBuilder
58
 */
59
class Form extends Facade
60
{
61
    /**
62
     * Get the registered name of the component.
63
     *
64
     * @return string
65
     */
66
    protected static function getFacadeAccessor(): string
67
    {
68
        return 'form';
69
    }
70
}
71