| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class PhoneFormatter |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $phone |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | public static function run($phone) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $phone |
||
| 28 | * @param array $options |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public static function a($phone, array $options = []) |
||
| 32 | { |
||
| 33 | return Html::a(self::format($phone), "tel:+{$phone}", $options); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param $phone |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public static function format($phone) |
||
| 49 | } |
||
| 50 | } |