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 964ef63 commit ddf66f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Model/YandexAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getPrecision()
return $this->precision;
}

public function withPrecision(string $precision = null): self
public function withPrecision(?string $precision = null): self
{
$new = clone $this;
$new->precision = $precision;
Expand All @@ -62,7 +62,7 @@ public function getName()
return $this->name;
}

public function withName(string $name = null): self
public function withName(?string $name = null): self
{
$new = clone $this;
$new->name = $name;
Expand All @@ -78,7 +78,7 @@ public function getKind()
return $this->kind;
}

public function withKind(string $kind = null): self
public function withKind(?string $kind = null): self
{
$new = clone $this;
$new->kind = $kind;
Expand Down
4 changes: 2 additions & 2 deletions Yandex.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ final class Yandex extends AbstractHttpProvider implements Provider
* @param string $toponym toponym biasing only for reverse geocoding (optional)
* @param string|null $apiKey API Key
*/
public function __construct(ClientInterface $client, string $toponym = null, string $apiKey = null)
public function __construct(ClientInterface $client, ?string $toponym = null, ?string $apiKey = null)
{
parent::__construct($client);

Expand Down Expand Up @@ -94,7 +94,7 @@ public function getName(): string
return 'yandex';
}

private function executeQuery(string $url, int $limit, string $locale = null): AddressCollection
private function executeQuery(string $url, int $limit, ?string $locale = null): AddressCollection
{
if (null !== $locale) {
$url = sprintf('%s&lang=%s', $url, str_replace('_', '-', $locale));
Expand Down

0 comments on commit ddf66f1

Please sign in to comment.