Passed
Pull Request — master (#721)
by Florian
14:00 queued 04:02
created

Callout   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 6
c 2
b 1
f 0
dl 0
loc 14
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
    public function __construct($type = 'info', $title = null)
13
    {
14
        $this->type = $type;
15
        $this->title = $title;
16
    }
17
18
    public function render()
19
    {
20
        return view('adminlte::callout');
21
    }
22
}
23