for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.5
*/
namespace Quantum\Libraries\Auth;
use Quantum\Exceptions\LangException;
* Class AuthException
* @package Quantum\Exceptions
class AuthException extends \Exception
{
* @return AuthException
* @throws LangException
public static function incorrectCredentials(): AuthException
return new static(t('exception.incorrect_auth_credentials'));
}
public static function inactiveAccount(): AuthException
return new static(t('exception.inactive_account'));
public static function incorrectVerificationCode(): AuthException
return new static(t('exception.incorrect_verification_code'));
public static function verificationCodeExpired(): AuthException
return new static(t('exception.verification_code_expired'));
public static function misconfiguredAuthConfig(): AuthException
return new static(t('exception.misconfigured_auth_config'));
* @param string $name
public static function undefinedAuthType(string $name): AuthException
$name
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function undefinedAuthType(/** @scrutinizer ignore-unused */ string $name): AuthException
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new static(t('exception.undefined_auth_type', ''));
public static function incorrectUserSchema(): AuthException
return new static(t('exception.incorrect_user_schema'));
public static function incorrectAuthService(): AuthException
return new static(t('exception.incorrect_auth_service'));
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.