Passed
Push — feature/depend-on-metadata-inf... ( ef854e...953c11 )
by
unknown
39:13 queued 32:26
created

RssMapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * @copyright Zicht Online <http://www.zicht.nl>
4
 */
5
6
namespace Zicht\Bundle\UrlBundle\Aliasing\Mapper;
7
8
/**
9
 * Class RssMapper
10
 *
11
 * Helper to map urls in an Rss string from internal to public aliasing or vice versa.
12
 *
13
 * @package Zicht\Bundle\UrlBundle\Aliasing
14
 */
15
class RssMapper extends AbstractMapper
16
{
17
    /**
18
     * Constructor.
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct(['application/rss+xml'], '/(<link>)(.*?)(<\/link>)/');
23
    }
24
}
25