Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class AllianceHelper { |
||
9 | protected static $patterns = [ |
||
10 | // "#\[fc\]([a-z0-9\#]+)\[/fc\](.*?)\[/f\]#Ssi" => '<font color="\1">\2</font>', |
||
11 | "#\[fc\]([a-z0-9\#]+)\[/fc\](.*?)\[/f\]#Ssi" => '<span style="color:\1">\2</span>', |
||
12 | '#\[img\](.*?)\[/img\]#Smi' => '<img src="\1" alt="\1" style="border:0;" />', |
||
13 | // "#\[fc\]([a-z0-9\#\ \[\]]+)\[/fc\]#Ssi" => '<font color="\1">', |
||
14 | // "#\[/f\]#Ssi" => '</font>', |
||
15 | "#\[fc\]([a-z0-9\#\ \[\]]+)\[/fc\]#Ssi" => '<span style="color:\1">', |
||
16 | "#\[/f\]#Ssi" => '</span>', |
||
17 | ]; |
||
18 | |||
19 | public static function formatText($text) { |
||
24 |