mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/16008] Adjust naming and remove typo
PHPBB3-16008
This commit is contained in:
@@ -20,7 +20,7 @@ use OAuth\Common\Storage\Exception\TokenNotFoundException;
|
|||||||
use OAuth\Common\Storage\Exception\AuthorizationStateNotFoundException;
|
use OAuth\Common\Storage\Exception\AuthorizationStateNotFoundException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OAuth storage wrapper for phpBB3's cache
|
* OAuth storage wrapper for phpBB's cache
|
||||||
*/
|
*/
|
||||||
class token_storage implements TokenStorageInterface
|
class token_storage implements TokenStorageInterface
|
||||||
{
|
{
|
||||||
@@ -148,7 +148,7 @@ class token_storage implements TokenStorageInterface
|
|||||||
$data['session_id'] = $this->user->data['session_id'];
|
$data['session_id'] = $this->user->data['session_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->_has_access_token($data);
|
return $this->has_access_token($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -354,7 +354,7 @@ class token_storage implements TokenStorageInterface
|
|||||||
'provider' => $service,
|
'provider' => $service,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $this->_has_access_token($data);
|
return $this->has_access_token($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -388,7 +388,7 @@ class token_storage implements TokenStorageInterface
|
|||||||
* @return bool true if the user's access token exists,
|
* @return bool true if the user's access token exists,
|
||||||
* false if the user's access token does not exist
|
* false if the user's access token does not exist
|
||||||
*/
|
*/
|
||||||
protected function _has_access_token($data)
|
protected function has_access_token($data)
|
||||||
{
|
{
|
||||||
return (bool) $this->get_access_token_row($data);
|
return (bool) $this->get_access_token_row($data);
|
||||||
}
|
}
|
||||||
|
@@ -74,7 +74,7 @@ interface provider_interface
|
|||||||
*
|
*
|
||||||
* @param \phpbb\config\config $new_config Contains the new configuration values
|
* @param \phpbb\config\config $new_config Contains the new configuration values
|
||||||
* that have been set in acp_board.
|
* that have been set in acp_board.
|
||||||
* @return array|null Returns null if not implemented or an array withe
|
* @return array|null Returns null if not implemented or an array with
|
||||||
* the template file name and an array of the vars
|
* the template file name and an array of the vars
|
||||||
* that the template needs that must conform to the
|
* that the template needs that must conform to the
|
||||||
* following example:
|
* following example:
|
||||||
|
Reference in New Issue
Block a user