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