Skip to content

Commit

Permalink
🚨 Apply PHP CS Fixer fixes (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien authored Mar 2, 2024
1 parent ba4aff8 commit cd2d187
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Model/OpenCageAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ final class OpenCageAddress extends Address
*/
private $formattedAddress;

public function withMGRS(string $mgrs = null): self
public function withMGRS(?string $mgrs = null): self
{
$new = clone $this;
$new->mgrs = $mgrs;
Expand All @@ -65,7 +65,7 @@ public function getMGRS()
return $this->mgrs;
}

public function withMaidenhead(string $maidenhead = null): self
public function withMaidenhead(?string $maidenhead = null): self
{
$new = clone $this;
$new->maidenhead = $maidenhead;
Expand All @@ -81,7 +81,7 @@ public function getMaidenhead()
return $this->maidenhead;
}

public function withGeohash(string $geohash = null): self
public function withGeohash(?string $geohash = null): self
{
$new = clone $this;
$new->geohash = $geohash;
Expand All @@ -97,7 +97,7 @@ public function getGeohash()
return $this->geohash;
}

public function withWhat3words(string $what3words = null): self
public function withWhat3words(?string $what3words = null): self
{
$new = clone $this;
$new->what3words = $what3words;
Expand All @@ -113,7 +113,7 @@ public function getWhat3words()
return $this->what3words;
}

public function withFormattedAddress(string $formattedAddress = null): self
public function withFormattedAddress(?string $formattedAddress = null): self
{
$new = clone $this;
$new->formattedAddress = $formattedAddress;
Expand Down
2 changes: 1 addition & 1 deletion OpenCage.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getName(): string
/**
* @throws \Geocoder\Exception\Exception
*/
private function executeQuery(string $url, string $locale = null): AddressCollection
private function executeQuery(string $url, ?string $locale = null): AddressCollection
{
if (null !== $locale) {
$url = sprintf('%s&language=%s', $url, $locale);
Expand Down

0 comments on commit cd2d187

Please sign in to comment.