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

TMString::trimLinks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 3
cp 0
cc 1
eloc 1
nc 1
nop 1
crap 2
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