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

ProfileFlatItem   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 3 1
A __construct() 0 6 1
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class ProfileFlatItem extends Component
8
{
9
    public $badge;
10
    public $title;
11
    public $text;
12
    public $url;
13
14
    public function __construct($badge = 'info', $title, $text, $url = '#')
15
    {
16
        $this->badge = $badge;
17
        $this->title = $title;
18
        $this->text = $text;
19
        $this->url = $url;
20
    }
21
22
    public function render()
23
    {
24
        return view('adminlte::profile-flat-item');
25
    }
26
}
27