Completed
Push — master ( f05f74...746c7e )
by Rick
14:39 queued 25s
created

Remove   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A filter() 0 4 1
1
<?php
2
/**
3
 * Particle.
4
 *
5
 * @link      http://github.com/particle-php for the canonical source repository
6
 * @copyright Copyright (c) 2005-2015 Particle (http://particle-php.com)
7
 * @license   https://github.com/particle-php/Filter/blob/master/LICENSE New BSD License
8
 */
9
namespace Particle\Filter\FilterRule;
10
11
use Particle\Filter\FilterRule;
12
13
/**
14
 * Class Remove
15
 *
16
 * @package Particle\Filter\FilterRule
17
 */
18
class Remove extends FilterRule
19
{
20
    /**
21
     * Returns an empty filter result so the value can be removed.
22
     *
23
     * @param mixed $value
24
     * @return string
25
     */
26 3
    public function filter($value)
27
    {
28 3
        return $this->setEmpty();
29
    }
30
}
31