Completed
Push — master ( 5fe3af...b86b7f )
by Propa
09:13
created
src/helpers.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@
 block discarded – undo
13 13
 	 * @return string
14 14
 	 */
15 15
 	function phone_format($phone, $country = null, $format = PhoneNumberFormat::INTERNATIONAL)
16
-    	{
17
-        	$lib = App::make('libphonenumber');
16
+		{
17
+			$lib = App::make('libphonenumber');
18 18
 
19
-        	if (!$country) {
20
-        	  $country = App::getLocale();
21
-        	}
19
+			if (!$country) {
20
+			  $country = App::getLocale();
21
+			}
22 22
 
23
-        	$phoneNumber = $lib->parse($phone, $country);
23
+			$phoneNumber = $lib->parse($phone, $country);
24 24
 
25
-        	return $lib->format($phoneNumber, $format);
26
-    	}
25
+			return $lib->format($phoneNumber, $format);
26
+		}
27 27
 }
Please login to merge, or discard this patch.
src/PhoneValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 */
145 145
 	protected function checkCountries($attribute)
146 146
 	{
147
-		$countryField = (is_null($this->countryField) ? $attribute . '_country' : $this->countryField);
147
+		$countryField = (is_null($this->countryField) ? $attribute.'_country' : $this->countryField);
148 148
 
149 149
 		if ($this->isInputField($countryField)) {
150 150
 			$this->countries = array(array_get($this->data, $countryField));
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 	{
207 207
 		// Transform types to their namespaced class constant.
208 208
 		array_walk($types, function(&$type) {
209
-			$type = constant('\libphonenumber\PhoneNumberType::' . $type);
209
+			$type = constant('\libphonenumber\PhoneNumberType::'.$type);
210 210
 		});
211 211
 
212 212
 		// Add in the unsure number type if applicable.
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 		// Legacy support.
251 251
 		$type = ($type == 'LANDLINE' ? 'FIXED_LINE' : $type);
252 252
 
253
-		return defined('\libphonenumber\PhoneNumberType::' . strtoupper($type));
253
+		return defined('\libphonenumber\PhoneNumberType::'.strtoupper($type));
254 254
 	}
255 255
 
256 256
 }
Please login to merge, or discard this patch.