Completed
Push — master ( c9d758...d6ceea )
by Propa
03:56
created
src/helpers.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,19 +4,19 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.