Passed
Push — 5.0.0 ( ae03fe...9fcb89 )
by Fèvre
05:56
created

Form   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A render() 0 3 1
1
<?php
2
3
namespace Xetaravel\View\Components;
4
5
use Closure;
6
use Illuminate\Contracts\View\View;
7
use Illuminate\View\Component;
8
9
class Form extends Component
10
{
11
    /**
12
     * Create a new component instance.
13
     */
14
    public function __construct(
15
16
        // Slots
17
        public mixed $actions = null,
18
        public ?bool $noSeparator = false,
19
    ) {
20
        //
21
    }
22
23
    /**
24
     * Get the view / contents that represent the component.
25
     */
26
    public function render(): View|Closure|string
27
    {
28
        return view('components.form');
29
    }
30
}
31