mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11620] Removed unnecessary lines and whitespace
PHPBB3-11620
This commit is contained in:
parent
f51721e905
commit
c96b0b1a47
2 changed files with 4 additions and 10 deletions
|
@ -8,15 +8,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mock provider class with basic functions to help test
|
* Mock auth provider class with basic functions to help test sessions.
|
||||||
* sessions.
|
|
||||||
*
|
|
||||||
* See interface here:
|
|
||||||
* includes/auth/provider/interface.php
|
|
||||||
*/
|
*/
|
||||||
class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
|
class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
|
||||||
{
|
{
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -24,8 +24,8 @@ require_once dirname(__FILE__) . '/../../phpBB/includes/session.php';
|
||||||
*/
|
*/
|
||||||
class phpbb_session_testable_facade
|
class phpbb_session_testable_facade
|
||||||
{
|
{
|
||||||
var $db;
|
protected $db;
|
||||||
var $session_factory;
|
protected $session_factory;
|
||||||
|
|
||||||
function __construct($db, $session_factory) {
|
function __construct($db, $session_factory) {
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
|
@ -59,12 +59,11 @@ class phpbb_session_testable_facade
|
||||||
$config['cookie_domain'] = $cookie_domain_config;
|
$config['cookie_domain'] = $cookie_domain_config;
|
||||||
$request->overwrite('SERVER_NAME', $host, phpbb_request_interface::SERVER);
|
$request->overwrite('SERVER_NAME', $host, phpbb_request_interface::SERVER);
|
||||||
$request->overwrite('Host', $host, phpbb_request_interface::SERVER);
|
$request->overwrite('Host', $host, phpbb_request_interface::SERVER);
|
||||||
// Note: There is a php_uname fallthrough in this method
|
// Note: There is a php_uname function used as a fallthrough
|
||||||
// that this function doesn't override
|
// that this function doesn't override
|
||||||
return $session->extract_current_hostname();
|
return $session->extract_current_hostname();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* This function has a lot of dependencies, so instead of naming them all,
|
* This function has a lot of dependencies, so instead of naming them all,
|
||||||
|
|
Loading…
Add table
Reference in a new issue