Completed
Push — master ( 4ca583...a67af2 )
by Song
02:43
created

BrowserBtn   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 13 1
1
<?php
2
3
4
namespace Encore\Admin\Grid\Selectable;
5
6
use Illuminate\Contracts\Support\Renderable;
7
8
class BrowserBtn implements Renderable
9
{
10
    public function render()
11
    {
12
        $text = admin_trans('admin.choose');
13
14
        $html = <<<HTML
15
<a href="javascript:void(0)" class="btn btn-primary btn-sm pull-left select-relation">
16
    <i class="glyphicon glyphicon-folder-open"></i>
17
    &nbsp;&nbsp;{$text}
18
</a>
19
HTML;
20
21
        return $html;
22
    }
23
}
24