mirror of
https://github.com/humhub/humhub.git
synced 2025-02-06 08:19:03 +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;
|
||||||
use yii\authclient\ClientInterface;
|
use yii\authclient\ClientInterface;
|
||||||
use yii\bootstrap\Html;
|
use yii\bootstrap\Html;
|
||||||
|
use yii\base\InvalidConfigException;
|
||||||
|
use humhub\modules\user\authclient\BaseFormAuth;
|
||||||
|
|
||||||
class AuthChoice extends \yii\authclient\widgets\AuthChoice
|
class AuthChoice extends \yii\authclient\widgets\AuthChoice
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to retrieve the auth clients in a static way
|
* Used to retrieve the auth clients in a static way
|
||||||
* @var type
|
* @var string
|
||||||
*/
|
*/
|
||||||
private static $authclientCollection = 'authClientCollection';
|
private static $authclientCollection = 'authClientCollection';
|
||||||
|
|
||||||
@ -63,7 +65,8 @@ class AuthChoice extends \yii\authclient\widgets\AuthChoice
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns default auth clients list.
|
* Returns default auth clients list.
|
||||||
* @return ClientInterface[] auth clients list.
|
* @return bool
|
||||||
|
* @throws InvalidConfigException
|
||||||
*/
|
*/
|
||||||
public static function hasClients()
|
public static function hasClients()
|
||||||
{
|
{
|
||||||
@ -74,8 +77,8 @@ class AuthChoice extends \yii\authclient\widgets\AuthChoice
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters out clients which need login form
|
* Filters out clients which need login form
|
||||||
* @param type $clients
|
* @param $clients
|
||||||
* @return \humhub\modules\user\authclient\BaseFormAuth
|
* @return BaseFormAuth[]
|
||||||
*/
|
*/
|
||||||
private static function filterClients($clients)
|
private static function filterClients($clients)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user