-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from humhub-contrib/enh/php-cs-fixer
Use PHP CS Fixer
- Loading branch information
Showing
13 changed files
with
84 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: PHP CS Fixer | ||
|
||
on: push | ||
|
||
jobs: | ||
fixers: | ||
uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
|
||
class JoinRoomForm extends \yii\base\Model | ||
{ | ||
|
||
public $room; | ||
public $newWindow; | ||
|
||
|
@@ -27,10 +26,11 @@ public function attributeLabels() | |
]; | ||
} | ||
|
||
/** | ||
* WIP! | ||
*/ | ||
public function getJwt() { | ||
/** | ||
* WIP! | ||
*/ | ||
public function getJwt() | ||
{ | ||
$key = "my_jitsi_app_secret2"; | ||
$payload = [ | ||
"iss" => "my_web_client", | ||
|
@@ -44,10 +44,10 @@ public function getJwt() { | |
'email' => '[email protected]', | ||
// 'id' => 'asd' | ||
], | ||
] | ||
], | ||
]; | ||
|
||
$jwt = JWT::encode($payload, $key, 'HS256'); | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"conference", | ||
"jitsi" | ||
], | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"humhub": { | ||
"minVersion": "1.7" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,52 @@ | ||
<?php | ||
/** | ||
* @link https://www.humhub.org/ | ||
* @copyright Copyright (c) HumHub GmbH & Co. KG | ||
* @license https://www.humhub.com/licences | ||
*/ | ||
|
||
namespace humhubContrib\modules\jitsiMeet\permissions; | ||
|
||
use humhub\libs\BasePermission; | ||
use humhub\modules\user\models\Group; | ||
use Yii; | ||
|
||
class CanAccess extends BasePermission | ||
{ | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public $defaultAllowedGroups = []; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $fixedGroups = []; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $defaultState = self::STATE_ALLOW; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $moduleId = 'jitsi-meet'; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getTitle() | ||
{ | ||
return Yii::t('JitsiMeetModule.base', 'Can access Jitsi Meet'); | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getDescription() | ||
{ | ||
return Yii::t('JitsiMeetModule.base', 'Can access Jitsi Meet from main navigation.'); | ||
} | ||
|
||
} | ||
<?php | ||
/** | ||
* @link https://www.humhub.org/ | ||
* @copyright Copyright (c) HumHub GmbH & Co. KG | ||
* @license https://www.humhub.com/licences | ||
*/ | ||
|
||
namespace humhubContrib\modules\jitsiMeet\permissions; | ||
|
||
use humhub\libs\BasePermission; | ||
use humhub\modules\user\models\Group; | ||
use Yii; | ||
|
||
class CanAccess extends BasePermission | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public $defaultAllowedGroups = []; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $fixedGroups = []; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $defaultState = self::STATE_ALLOW; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected $moduleId = 'jitsi-meet'; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getTitle() | ||
{ | ||
return Yii::t('JitsiMeetModule.base', 'Can access Jitsi Meet'); | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getDescription() | ||
{ | ||
return Yii::t('JitsiMeetModule.base', 'Can access Jitsi Meet from main navigation.'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters