Passed
Push — up-php7 ( a2fe11...4e1c1e )
by Erik
05:48
created

HtmlTransformer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A doMap() 0 3 1
1
<?php
2
/**
3
 * @author Muhammed Akbulut <[email protected]>
4
 * @copyright Zicht Online <http://www.zicht.nl>
5
 */
6
7
namespace Zicht\Bundle\UrlBundle\Form\DataTransformer;
8
9
use Symfony\Component\Form\DataTransformerInterface;
10
11
/**
12
 * Class AliasToInternalUrlTransformer
13
 *
14
 * @package Zicht\Bundle\AdminBundle\Form\DataTransformer
15
 */
16
class HtmlTransformer extends AbstractAliasingTransformer
17
{
18
    /**
19
     * @{inheritDoc}
20
     */
21
    protected function doMap($html, $mode)
22
    {
23
        return $this->aliasing->mapContent('text/html', $mode, $html, []);
24
    }
25
}
26