adjusted method order in request class.

This commit is contained in:
Taylor Otwell 2011-06-25 20:20:09 -05:00
parent b7b258a10b
commit 0b7dbab0af
1 changed files with 10 additions and 10 deletions

View File

@ -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.
*