| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Replacer { |
||
| 12 | /** |
||
| 13 | * Replace the {values} by $params[] values in $text |
||
| 14 | * @param string $text |
||
| 15 | * @param array[] $params |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | public static function replace($text, $params = []) { |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * get the items in {} as array |
||
| 32 | * @param $text |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | public static function getParams($text) { |
||
| 41 |