aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-11-11 18:21:18 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-11-11 18:21:18 +0100
commit4679433ae19a12c79a6f568de4c85f4cf9cdf30b (patch)
tree07e360205d0e0e97930f24ce1cc9657cf2a6627c
parentcbb5e6f765fbebc86980e5c72321fca79324aa34 (diff)
downloadforums-4679433ae19a12c79a6f568de4c85f4cf9cdf30b.tar
forums-4679433ae19a12c79a6f568de4c85f4cf9cdf30b.tar.gz
forums-4679433ae19a12c79a6f568de4c85f4cf9cdf30b.tar.bz2
forums-4679433ae19a12c79a6f568de4c85f4cf9cdf30b.tar.xz
forums-4679433ae19a12c79a6f568de4c85f4cf9cdf30b.zip
[ticket/16008] Adjust naming and remove typo
PHPBB3-16008
-rw-r--r--phpBB/phpbb/auth/provider/oauth/token_storage.php8
-rw-r--r--phpBB/phpbb/auth/provider/provider_interface.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/token_storage.php b/phpBB/phpbb/auth/provider/oauth/token_storage.php
index 861b00f5cf..c0f585d7bb 100644
--- a/phpBB/phpbb/auth/provider/oauth/token_storage.php
+++ b/phpBB/phpbb/auth/provider/oauth/token_storage.php
@@ -20,7 +20,7 @@ use OAuth\Common\Storage\Exception\TokenNotFoundException;
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
{
@@ -148,7 +148,7 @@ class token_storage implements TokenStorageInterface
$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,
];
- 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,
* 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);
}
diff --git a/phpBB/phpbb/auth/provider/provider_interface.php b/phpBB/phpbb/auth/provider/provider_interface.php
index 6ad9b36f83..21c73a33c5 100644
--- a/phpBB/phpbb/auth/provider/provider_interface.php
+++ b/phpBB/phpbb/auth/provider/provider_interface.php
@@ -74,7 +74,7 @@ interface provider_interface
*
* @param \phpbb\config\config $new_config Contains the new configuration values
* 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
* that the template needs that must conform to the
* following example: