HTMLSanitizer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A sanitize() 0 4 1
1
<?php
2
/**
3
 * BrightNucleus ChainMail Component.
4
 *
5
 * @package   BrightNucleus/ChainMail
6
 * @author    Alain Schlesser <[email protected]>
7
 * @license   MIT
8
 * @link      http://www.brightnucleus.com/
9
 * @copyright 2016 Alain Schlesser, Bright Nucleus
10
 */
11
12
namespace BrightNucleus\ChainMail\Sanitizer;
13
14
/**
15
 * Class HTMLSanitizer.
16
 *
17
 * @since   1.0.0
18
 *
19
 * @package BrightNucleus\ChainMail\Sanitizer
20
 * @author  Alain Schlesser <[email protected]>
21
 */
22
class HTMLSanitizer extends AbstractSanitizer
23
{
24
25
    /**
26
     * Sanitize the content for a given context.
27
     *
28
     * @since 1.0.0
29
     *
30
     * @param string $content Content to sanitize.
31
     * @param array  $context Context in which to sanitize.
32
     *
33
     * @return string Sanitized content.
34
     */
35 4
    public function sanitize($content, array $context)
36
    {
37 4
        return $content;
38
    }
39
}
40