NonAnsi   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A apply() 0 4 1
1
<?php
2
3
namespace League\CLImate\Decorator\Parser;
4
5
class NonAnsi extends Parser
6
{
7
    /**
8
     * Strip the string of any tags
9
     *
10
     * @param  string $str
11
     *
12
     * @return string
13
     */
14
15 8
    public function apply($str)
16
    {
17 8
        return preg_replace($this->tags->regex(), '', $str);
18
    }
19
}
20