Completed
Push — master ( 3e7a96...9ec6b9 )
by ARCANEDEV
9s
created

Str   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A escape() 0 4 1
1
<?php namespace Arcanedev\LaravelHtml\Helpers;
2
3
/**
4
 * Class     Str
5
 *
6
 * @package  Arcanedev\LaravelHtml\Helpers
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class Str
10
{
11
    /**
12
     * Convert all applicable characters to HTML entities
13
     *
14
     * @param  string  $value
15
     * @param  bool    $doubleEncode
16
     *
17
     * @return string
18
     */
19 357
    public static function escape($value, $doubleEncode = true)
20
    {
21 357
        return htmlentities($value, ENT_QUOTES, 'UTF-8', $doubleEncode);
22
    }
23
}
24