Form::novalidate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Spatie\Html\Elements;
4
5
use Spatie\Html\BaseElement;
6
7
class Form extends BaseElement
8
{
9
    protected $tag = 'form';
10
11
    /**
12
     * @param string|null $action
13
     *
14
     * @return static
15
     */
16
    public function action($action)
17
    {
18
        return $this->attribute('action', $action);
19
    }
20
21
    /**
22
     * @param string|null $method
23
     *
24
     * @return static
25
     */
26
    public function method($method)
27
    {
28
        return $this->attribute('method', $method);
29
    }
30
31
    /**
32
     * @return static
33
     */
34
    public function novalidate()
35
    {
36
        return $this->attribute('novalidate');
37
    }
38
39
    /**
40
     * @return static
41
     */
42
    public function acceptsFiles()
43
    {
44
        return $this->attribute('enctype', 'multipart/form-data');
45
    }
46
}
47