adjusted method order in request class.
This commit is contained in:
@@ -109,16 +109,6 @@ class Request {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the request is using HTTPS.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function is_secure()
|
||||
{
|
||||
return (static::protocol() == 'https');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP protocol for the request.
|
||||
*
|
||||
@@ -129,6 +119,16 @@ class Request {
|
||||
return (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the request is using HTTPS.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function is_secure()
|
||||
{
|
||||
return (static::protocol() == 'https');
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the request is an AJAX request.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user