Skip to content

Commit 5c7e0f8

Browse files
authored
Merge pull request #626 from kenjis/refactor-Activatable
refactor: change return type to void
2 parents f519e38 + 9412d91 commit 5c7e0f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Traits/Activatable.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ public function isNotActivated(): bool
2727
/**
2828
* Activates the user.
2929
*/
30-
public function activate(): bool
30+
public function activate(): void
3131
{
32-
$model = auth()->getProvider();
32+
$users = auth()->getProvider();
3333

34-
return $model->update($this->id, ['active' => 1]);
34+
$users->update($this->id, ['active' => 1]);
3535
}
3636

3737
/**
3838
* Deactivates the user.
3939
*/
40-
public function deactivate(): bool
40+
public function deactivate(): void
4141
{
42-
$model = auth()->getProvider();
42+
$users = auth()->getProvider();
4343

44-
return $model->update($this->id, ['active' => 0]);
44+
$users->update($this->id, ['active' => 0]);
4545
}
4646

4747
/**

0 commit comments

Comments
 (0)