Refactor isConfirmed()

This commit is contained in:
Oliver Davies 2019-05-20 22:55:15 +01:00
parent 29cf7e8660
commit d6a5d62e99

View file

@ -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