| Total Complexity | 8 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class AuthException extends \Exception |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @return AuthException |
||
| 27 | * @throws LangException |
||
| 28 | */ |
||
| 29 | public static function incorrectCredentials(): AuthException |
||
| 30 | { |
||
| 31 | return new static(t('exception.incorrect_auth_credentials')); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return AuthException |
||
| 36 | * @throws LangException |
||
| 37 | */ |
||
| 38 | public static function inactiveAccount(): AuthException |
||
| 39 | { |
||
| 40 | return new static(t('exception.inactive_account')); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return AuthException |
||
| 45 | * @throws LangException |
||
| 46 | */ |
||
| 47 | public static function incorrectVerificationCode(): AuthException |
||
| 48 | { |
||
| 49 | return new static(t('exception.incorrect_verification_code')); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return AuthException |
||
| 54 | * @throws LangException |
||
| 55 | */ |
||
| 56 | public static function verificationCodeExpired(): AuthException |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return AuthException |
||
| 63 | * @throws LangException |
||
| 64 | */ |
||
| 65 | public static function misconfiguredAuthConfig(): AuthException |
||
| 66 | { |
||
| 67 | return new static(t('exception.misconfigured_auth_config')); |
||
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param string $name |
||
| 72 | * @return AuthException |
||
| 73 | * @throws LangException |
||
| 74 | */ |
||
| 75 | public static function undefinedAuthType(string $name): AuthException |
||
|
|
|||
| 76 | { |
||
| 77 | return new static(t('exception.undefined_auth_type', '')); |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return AuthException |
||
| 82 | * @throws LangException |
||
| 83 | */ |
||
| 84 | public static function incorrectUserSchema(): AuthException |
||
| 85 | { |
||
| 86 | return new static(t('exception.incorrect_user_schema')); |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return AuthException |
||
| 91 | * @throws LangException |
||
| 92 | */ |
||
| 93 | public static function incorrectAuthService(): AuthException |
||
| 96 | } |
||
| 97 | } |
||
| 98 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.