Passed
Push — master ( ca44b8...ad59de )
by Florian
03:51
created

UtilsHelper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A applyHtmlEntityDecoder() 0 3 2
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Helpers;
4
5
class UtilsHelper
6
{
7
    /**
8
     * Apply an HTML entity decoder to the specified string.
9
     *
10
     * @param  string  $value
11
     * @return string
12
     */
13 40
    public static function applyHtmlEntityDecoder($value)
14
    {
15 40
        return isset($value) ? html_entity_decode($value) : $value;
16
    }
17
}
18