Skip to content

Commit

Permalink
Autocommit PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin authored and github-actions[bot] committed Oct 9, 2024
1 parent cc83e93 commit 63d69fe
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function onAuthClientCollectionInit($event)
$authClientCollection->setClient('github', [
'class' => GithubAuth::class,
'clientId' => ConfigureForm::getInstance()->clientId,
'clientSecret' => ConfigureForm::getInstance()->clientSecret
'clientSecret' => ConfigureForm::getInstance()->clientSecret,
]);
}
}
Expand Down
1 change: 0 additions & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class Module extends \humhub\components\Module
{

/**
* @inheritdoc
*/
Expand Down
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
'class' => 'humhubContrib\auth\github\Module',
'namespace' => 'humhubContrib\auth\github',
'events' => [
[Collection::class, Collection::EVENT_AFTER_CLIENTS_SET, ['humhubContrib\auth\github\Events', 'onAuthClientCollectionInit']]
[Collection::class, Collection::EVENT_AFTER_CLIENTS_SET, ['humhubContrib\auth\github\Events', 'onAuthClientCollectionInit']],
],
];
1 change: 0 additions & 1 deletion controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class AdminController extends Controller
{

/**
* Render admin only page
*
Expand Down
8 changes: 4 additions & 4 deletions models/ConfigureForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class ConfigureForm extends Model
{
/**
* @var boolean Enable this authclient
* @var bool Enable this authclient
*/
public $enabled;

Expand Down Expand Up @@ -74,7 +74,7 @@ public function loadSettings()

$settings = $module->settings;

$this->enabled = (boolean)$settings->get('enabled');
$this->enabled = (bool)$settings->get('enabled');
$this->clientId = $settings->get('clientId');
$this->clientSecret = $settings->get('clientSecret');

Expand All @@ -89,7 +89,7 @@ public function saveSettings()
/** @var Module $module */
$module = Yii::$app->getModule('auth-github');

$module->settings->set('enabled', (boolean)$this->enabled);
$module->settings->set('enabled', (bool)$this->enabled);
$module->settings->set('clientId', $this->clientId);
$module->settings->set('clientSecret', $this->clientSecret);

Expand All @@ -101,7 +101,7 @@ public function saveSettings()
*/
public static function getInstance()
{
$config = new static;
$config = new static();
$config->loadSettings();

return $config;
Expand Down

0 comments on commit 63d69fe

Please sign in to comment.