Completed
Pull Request — master (#59)
by
unknown
06:25 queued 03:32
created

TMString   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0
ccs 0
cts 14
cp 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A trimStyles() 0 4 1
A trimControls() 0 4 1
A trimColors() 0 4 1
A trimLinks() 0 4 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Helpers;
4
5
class TMString
6
{
7
8
9
    public static function trimStyles($string)
10
    {
11
        return preg_replace('/(\$[o,w,s,z,m,h,l])/gi', '', $string);
12
    }
13
14
    public static function trimControls($string)
0 ignored issues
show
Unused Code introduced by
The parameter $string is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
    {
16
17
    }
18
19
    public static function trimColors($string)
20
    {
21
        return preg_replace('/(\$[0-9,A-F]{3})/gi', "", $string);
22
    }
23
24
    public static function trimLinks($string)
0 ignored issues
show
Unused Code introduced by
The parameter $string is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
    {
26
27
    }
28
29
30
}
31