We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a07a255 commit ccf00cbCopy full SHA for ccf00cb
1 file changed
Location/Location.php
@@ -23,17 +23,17 @@ public function __construct(
23
24
public function getId(): string
25
{
26
- return $this->id ?? $this->getLabel();
+ return !empty($this->id) ? $this->id : $this->getLabel();
27
}
28
29
public function getCode(): string
30
31
- return $this->code ?? $this->getId();
+ return !empty($this->code) ? $this->code : $this->getId();
32
33
34
public function getLabel(): string
35
36
- return $this->label ?? $this->address->getCompany();
+ return !empty($this->label) ? $this->label : $this->address->getCompany();
37
38
39
public function getDistance(): int
0 commit comments