protected function validateConfig($key, $algo, $maxAge, $leeway)
    {
        if (empty($key)) {
            throw new JWTException('Signing key cannot be empty', static::ERROR_KEY_EMPTY);
        }

        if (!isset($this->algos[$algo])) {
            throw new JWTException('Unsupported algo ' . $algo, static::ERROR_ALGO_UNSUPPORTED);
        }

        if ($maxAge < 1) {
            throw new JWTException('Invalid maxAge: Should be greater than 0', static::ERROR_INVALID_MAXAGE);
        }

        if ($leeway < 0 || $leeway > 120) {
            throw new JWTException('Invalid leeway: Should be between 0-120', static::ERROR_INVALID_LEEWAY);
        }
    }
protected function validateConfig($key, $algo, $maxAge, $leeway)
    {
        if (empty($key)) {
            throw new JWTException('Signing key cannot be empty', static::ERROR_KEY_EMPTY);
        }

        if (!isset($this->algos[$algo])) {
            throw new JWTException('Unsupported algo ' . $algo, static::ERROR_ALGO_UNSUPPORTED);
        }

        if ($maxAge < 1) {
            throw new JWTException('Invalid maxAge: Should be greater than 0', static::ERROR_INVALID_MAXAGE);
        }

        if ($leeway < 0 || $leeway > 120) {
            throw new JWTException('Invalid leeway: Should be between 0-120', static::ERROR_INVALID_LEEWAY);
        }
    }
protected function validateConfig ( $ key , $ algo , $ maxAge , $ leeway ) { if ( empty ( $ key ) ) { throw new JWTException ( 'Signing key cannot be empty' , static :: ERROR_KEY_EMPTY ) ; } if ( ! isset ( $ this -> algos [ $ algo ] ) ) { throw new JWTException ( 'Unsupported algo ' . $ algo , static :: ERROR_ALGO_UNSUPPORTED ) ; } if ( $ maxAge < 1 ) { throw new JWTException ( 'Invalid maxAge: Should be greater than 0' , static :: ERROR_INVALID_MAXAGE ) ; } if ( $ leeway < 0 || $ leeway > 120 ) { throw new JWTException ( 'Invalid leeway: Should be between 0-120' , static :: ERROR_INVALID_LEEWAY ) ; } }
Throw up if input parameters invalid.

@codeCoverageIgnore
Throw up if input parameters invalid .