Lint
This commit is contained in:
parent
81e9eaba4e
commit
71d49ad74f
13 changed files with 83 additions and 39 deletions
|
@ -104,12 +104,14 @@ class Locale
|
|||
/**
|
||||
* Get country information from locale.
|
||||
*
|
||||
* @return Country|array
|
||||
* @return Country|array|null
|
||||
*/
|
||||
public function getCountry()
|
||||
{
|
||||
if (isset($this->region)) {
|
||||
return country($this->getIso3166());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue