Code Duplication    Length = 9-9 lines in 4 locations

src/Exceptions/CookieExpiredException.php 1 location

@@ 18-26 (lines=9) @@
15
/**
16
 * Exception class
17
 */
18
class CookieExpiredException extends ProxyException {
19
20
    public function __construct() {
21
        $this->httpStatusCode = 403;
22
        $this->errorType = 'proxy_cookie_expired';
23
        parent::__construct(\Lang::get('api-proxy-laravel::messages.proxy_cookie_expired'));
24
    }
25
26
}
27

src/Exceptions/CookieInvalidException.php 1 location

@@ 18-26 (lines=9) @@
15
/**
16
 * Exception class
17
 */
18
class CookieInvalidException extends ProxyException {
19
20
    public function __construct($parameter) {
21
        $this->httpStatusCode = 500;
22
        $this->errorType = 'proxy_cookie_invalid';
23
        parent::__construct(\Lang::get('api-proxy-laravel::messages.proxy_cookie_invalid', array('param' => $parameter)));
24
    }
25
26
}
27

src/Exceptions/MissingClientSecretException.php 1 location

@@ 18-26 (lines=9) @@
15
/**
16
 * Exception class
17
 */
18
class MissingClientSecretException extends ProxyException {
19
20
    public function __construct($parameter) {
21
        $this->httpStatusCode = 500;
22
        $this->errorType = 'missing_client_secret';
23
        parent::__construct(\Lang::get('api-proxy-laravel::messages.missing_client_secret', array('client' => $parameter)));
24
    }
25
26
}
27

src/Exceptions/ProxyMissingParamException.php 1 location

@@ 18-26 (lines=9) @@
15
/**
16
 * Exception class
17
 */
18
class ProxyMissingParamException extends ProxyException {
19
20
    public function __construct($parameter) {
21
        $this->httpStatusCode = 400;
22
        $this->errorType = 'proxy_missing_param';
23
        parent::__construct(\Lang::get('api-proxy-laravel::messages.proxy_missing_param', array('param' => $parameter)));
24
    }
25
26
}
27