Refactor isConfirmed()
This commit is contained in:
parent
29cf7e8660
commit
d6a5d62e99
|
@ -23,11 +23,7 @@ class Sponsor
|
||||||
|
|
||||||
public function isConfirmed(): bool
|
public function isConfirmed(): bool
|
||||||
{
|
{
|
||||||
if (!isset($this->data['confirmed'])) {
|
return $this->data['confirmed'] ?? false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->data['confirmed'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getData(): array
|
public function getData(): array
|
||||||
|
|
Loading…
Reference in a new issue