Skip to content

Commit e84d7ad

Browse files
authored
🚨 Apply PHP CS Fixer fixes (#1219)
1 parent 1518542 commit e84d7ad

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎Mapbox.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ final class Mapbox extends AbstractHttpProvider implements Provider
148148
public function __construct(
149149
ClientInterface $client,
150150
string $accessToken,
151-
string $country = null,
151+
?string $country = null,
152152
string $geocodingMode = self::GEOCODING_MODE_PLACES
153153
) {
154154
parent::__construct($client);
@@ -232,7 +232,7 @@ public function getName(): string
232232
/**
233233
* @return string query with extra params
234234
*/
235-
private function buildQuery(string $url, int $limit, string $locale = null, string $country = null): string
235+
private function buildQuery(string $url, int $limit, ?string $locale = null, ?string $country = null): string
236236
{
237237
$parameters = array_filter([
238238
'country' => $country,
@@ -246,7 +246,7 @@ private function buildQuery(string $url, int $limit, string $locale = null, stri
246246
return $url.$separator.http_build_query($parameters);
247247
}
248248

249-
private function fetchUrl(string $url, int $limit, string $locale = null, string $country = null): AddressCollection
249+
private function fetchUrl(string $url, int $limit, ?string $locale = null, ?string $country = null): AddressCollection
250250
{
251251
$url = $this->buildQuery($url, $limit, $locale, $country);
252252
$content = $this->getUrlContents($url);

‎Model/MapboxAddress.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class MapboxAddress extends Address
4646
*/
4747
private $neighborhood;
4848

49-
public function withId(string $id = null): self
49+
public function withId(?string $id = null): self
5050
{
5151
$new = clone $this;
5252
$new->id = $id;
@@ -67,7 +67,7 @@ public function getStreetName(): ?string
6767
return $this->streetName;
6868
}
6969

70-
public function withStreetName(string $streetName = null): self
70+
public function withStreetName(?string $streetName = null): self
7171
{
7272
$new = clone $this;
7373
$new->streetName = $streetName;
@@ -80,7 +80,7 @@ public function getStreetNumber(): ?string
8080
return $this->streetNumber;
8181
}
8282

83-
public function withStreetNumber(string $streetNumber = null): self
83+
public function withStreetNumber(?string $streetNumber = null): self
8484
{
8585
$new = clone $this;
8686
$new->streetNumber = $streetNumber;
@@ -112,7 +112,7 @@ public function getFormattedAddress(): ?string
112112
return $this->formattedAddress;
113113
}
114114

115-
public function withFormattedAddress(string $formattedAddress = null): self
115+
public function withFormattedAddress(?string $formattedAddress = null): self
116116
{
117117
$new = clone $this;
118118
$new->formattedAddress = $formattedAddress;
@@ -125,7 +125,7 @@ public function getNeighborhood(): ?string
125125
return $this->neighborhood;
126126
}
127127

128-
public function withNeighborhood(string $neighborhood = null): self
128+
public function withNeighborhood(?string $neighborhood = null): self
129129
{
130130
$new = clone $this;
131131
$new->neighborhood = $neighborhood;

0 commit comments

Comments
 (0)