diff --git a/.gitignore b/.gitignore index bb28f0d..52dbdc0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ vendor/ -composer.lock node_modules/ __pycache__/ diff --git a/composer.json b/composer.json index 66ecf73..b28169c 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "yusurko/useragent", "type": "library", - "version": "0.1.2", + "version": "0.1.0", "license": "Apache-2.0", "autoload": { "psr-4": { @@ -14,7 +14,5 @@ "email": "sakuragasaki46@gmail.com" } ], - "require": { - "phpseclib/phpseclib": "^3.0" - } + "require": {} } diff --git a/src/UserAgent.php b/src/UserAgent.php index 93321b1..7fbf1dd 100644 --- a/src/UserAgent.php +++ b/src/UserAgent.php @@ -194,11 +194,8 @@ a:link, a:visited {color: #39f} public function getCountry() { if ($this->country === null) { if ($this->locator === null) $this->locator = $this->probeLocator(); - if ($this->locator === false) { - $this->country = Country::outerSpace(); - } else { - $this->country = $this->locator->locate($this->getAddr()); - } + if ($this->locator === false) $this->country = Country::outerSpace(); + $this->country = $this->locator->locate($this->getAddr()); } return $this->country; }