mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 12:28:06 +01:00
Update AuthChoice.php (#6163)
Small fixes in the return types documentation
This commit is contained in:
parent
ec8cbc1b9c
commit
f12b47c464
@ -11,13 +11,15 @@ namespace humhub\modules\user\widgets;
|
||||
use Yii;
|
||||
use yii\authclient\ClientInterface;
|
||||
use yii\bootstrap\Html;
|
||||
use yii\base\InvalidConfigException;
|
||||
use humhub\modules\user\authclient\BaseFormAuth;
|
||||
|
||||
class AuthChoice extends \yii\authclient\widgets\AuthChoice
|
||||
{
|
||||
|
||||
/**
|
||||
* Used to retrieve the auth clients in a static way
|
||||
* @var type
|
||||
* @var string
|
||||
*/
|
||||
private static $authclientCollection = 'authClientCollection';
|
||||
|
||||
@ -63,7 +65,8 @@ class AuthChoice extends \yii\authclient\widgets\AuthChoice
|
||||
|
||||
/**
|
||||
* Returns default auth clients list.
|
||||
* @return ClientInterface[] auth clients list.
|
||||
* @return bool
|
||||
* @throws InvalidConfigException
|
||||
*/
|
||||
public static function hasClients()
|
||||
{
|
||||
@ -74,8 +77,8 @@ class AuthChoice extends \yii\authclient\widgets\AuthChoice
|
||||
|
||||
/**
|
||||
* Filters out clients which need login form
|
||||
* @param type $clients
|
||||
* @return \humhub\modules\user\authclient\BaseFormAuth
|
||||
* @param $clients
|
||||
* @return BaseFormAuth[]
|
||||
*/
|
||||
private static function filterClients($clients)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user