|
@@ -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.