Skip to content

Commit 2c8ae27

Browse files
committed
CS Fixes
1 parent b42e9ca commit 2c8ae27

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/Provider/IP2Location/IP2Location.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ private function executeQuery(string $url): AddressCollection
102102
throw new InvalidCredentials('Insufficient credits to use IP2Location service.');
103103
} elseif (preg_match('/invalid ip address/i', $data['response'])) {
104104
throw new UnsupportedOperation('Invalid IP address.');
105-
} else {
106-
throw new UnsupportedOperation(sprintf('Unexpected error: %s.', $data['response']));
107105
}
106+
throw new UnsupportedOperation(sprintf('Unexpected error: %s.', $data['response']));
108107
}
109108

110109
if (isset($data['region_name'])) {

src/Provider/MapQuest/MapQuest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,10 @@ public function geocodeQuery(GeocodeQuery $query): Collection
157157
$params = $this->addOptionsForGetQuery($params, $options);
158158

159159
return $this->executeGetQuery(static::GEOCODE_ENDPOINT, $params);
160-
} else {
161-
$params = $this->addOptionsForPostQuery($params, $options);
162-
163-
return $this->executePostQuery(static::GEOCODE_ENDPOINT, $params);
164160
}
161+
$params = $this->addOptionsForPostQuery($params, $options);
162+
163+
return $this->executePostQuery(static::GEOCODE_ENDPOINT, $params);
165164
}
166165

167166
public function reverseQuery(ReverseQuery $query): Collection

0 commit comments

Comments
 (0)