File tree Expand file tree Collapse file tree
Authentication/Authenticators Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020use CodeIgniter \Shield \Models \UserIdentityModel ;
2121use CodeIgniter \Shield \Models \UserModel ;
2222use CodeIgniter \Shield \Result ;
23- use Exception ;
2423use stdClass ;
2524
2625class Session implements AuthenticatorInterface
@@ -812,8 +811,6 @@ public function recordActiveDate(): void
812811 * and stores the necessary info in the db and a cookie.
813812 *
814813 * @see https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence
815- *
816- * @throws Exception
817814 */
818815 protected function rememberUser (User $ user ): void
819816 {
Original file line number Diff line number Diff line change 77use CodeIgniter \Shield \Authentication \Authenticators \Session ;
88use CodeIgniter \Shield \Entities \Login ;
99use CodeIgniter \Shield \Entities \User ;
10- use Exception ;
1110use Faker \Generator ;
1211
1312class LoginModel extends Model
@@ -81,8 +80,6 @@ public function lastLogin(User $user): ?Login
8180
8281 /**
8382 * Generate a fake login for testing
84- *
85- * @throws Exception
8683 */
8784 public function fake (Generator &$ faker ): Login
8885 {
Original file line number Diff line number Diff line change 44
55use CodeIgniter \I18n \Time ;
66use CodeIgniter \Shield \Entities \Login ;
7- use Exception ;
87use Faker \Generator ;
98
109class TokenLoginModel extends LoginModel
@@ -13,8 +12,6 @@ class TokenLoginModel extends LoginModel
1312
1413 /**
1514 * Generate a fake login for testing
16- *
17- * @throws Exception
1815 */
1916 public function fake (Generator &$ faker ): Login
2017 {
You can’t perform that action at this time.
0 commit comments