Update PHP-CS-Fixer to v3.x (#460)
This commit is contained in:
@ -19,7 +19,7 @@ use Da\User\Traits\MailAwareTrait;
|
||||
class UserConfirmationService implements ServiceInterface
|
||||
{
|
||||
use MailAwareTrait;
|
||||
|
||||
|
||||
protected $model;
|
||||
|
||||
public function __construct(User $model)
|
||||
@ -31,7 +31,7 @@ class UserConfirmationService implements ServiceInterface
|
||||
{
|
||||
$model = $this->model;
|
||||
$event = $this->make(UserEvent::class, [$model]);
|
||||
|
||||
|
||||
$this->model->trigger(UserEvent::EVENT_BEFORE_CONFIRMATION, $event);
|
||||
if ((bool)$this->model->updateAttributes(['confirmed_at' => time()])) {
|
||||
$this->model->trigger(UserEvent::EVENT_AFTER_CONFIRMATION, $event);
|
||||
|
||||
Reference in New Issue
Block a user