Passed
Pull Request — master (#721)
by Florian
06:49
created

Callout   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 6
c 2
b 1
f 0
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A render() 0 3 1
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class Callout extends Component
8
{
9
    public $type;
10
    public $title;
11
12 1
    public function __construct($type = 'info', $title = null)
13
    {
14 1
        $this->type = $type;
15 1
        $this->title = $title;
16 1
    }
17
18 1
    public function render()
19
    {
20 1
        return view('adminlte::components.callout');
21
    }
22
}
23