| @@ -4,19 +4,19 @@ | ||
| 4 | 4 | use libphonenumber\PhoneNumberFormat; | 
| 5 | 5 | |
| 6 | 6 |  if (!function_exists('phone_format')) { | 
| 7 | - /** | |
| 8 | - * Formats a phone number and country for display. | |
| 9 | - * | |
| 10 | - * @param string $phone | |
| 11 | - * @param string $country | |
| 12 | - * @param int|null $format | |
| 13 | - * @return string | |
| 14 | - */ | |
| 15 | - function phone_format($phone, $country, $format = PhoneNumberFormat::INTERNATIONAL) | |
| 16 | -    { | |
| 17 | -        $lib = App::make('libphonenumber'); | |
| 18 | - $phoneNumber = $lib->parse($phone, $country); | |
| 7 | + /** | |
| 8 | + * Formats a phone number and country for display. | |
| 9 | + * | |
| 10 | + * @param string $phone | |
| 11 | + * @param string $country | |
| 12 | + * @param int|null $format | |
| 13 | + * @return string | |
| 14 | + */ | |
| 15 | + function phone_format($phone, $country, $format = PhoneNumberFormat::INTERNATIONAL) | |
| 16 | +	{ | |
| 17 | +		$lib = App::make('libphonenumber'); | |
| 18 | + $phoneNumber = $lib->parse($phone, $country); | |
| 19 | 19 | |
| 20 | - return $lib->format($phoneNumber, $format); | |
| 21 | - } | |
| 20 | + return $lib->format($phoneNumber, $format); | |
| 21 | + } | |
| 22 | 22 | } |