Skip to content

Commit ccf00cb

Browse files
committed
test: Fix PHPStan issue
1 parent a07a255 commit ccf00cb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Location/Location.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ public function __construct(
2323

2424
public function getId(): string
2525
{
26-
return $this->id ?? $this->getLabel();
26+
return !empty($this->id) ? $this->id : $this->getLabel();
2727
}
2828

2929
public function getCode(): string
3030
{
31-
return $this->code ?? $this->getId();
31+
return !empty($this->code) ? $this->code : $this->getId();
3232
}
3333

3434
public function getLabel(): string
3535
{
36-
return $this->label ?? $this->address->getCompany();
36+
return !empty($this->label) ? $this->label : $this->address->getCompany();
3737
}
3838

3939
public function getDistance(): int

0 commit comments

Comments
 (0)