for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip\Auth\Exception;
/**
* Exception that occurs when a user specifies an authentication token that is
* invalid.
*/
class InvalidException extends AuthException
{
const CODE_TOKEN_EXPIRED = 1;
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
const CODE_TOKEN_INVALID = 2;
const CODE_CREDENTIALS_INVALID = 3;
public function __construct(
$message = 'The token being used is invalid',
$code = 0,
\Exception $previous = null
) {
parent::__construct($message, $code, $previous);
}
public function getStatusCode()
return 403;
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.