adjusted method order in request class.
This commit is contained in:
parent
b7b258a10b
commit
0b7dbab0af
|
@ -109,16 +109,6 @@ public static function ip()
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 @@ public static function protocol()
|
|||
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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue