diff --git a/lib/BigBlueButton/API.php b/lib/BigBlueButton/API.php index 63771f7..1a069d1 100644 --- a/lib/BigBlueButton/API.php +++ b/lib/BigBlueButton/API.php @@ -233,17 +233,17 @@ class API { */ private function recordToArray(Record $record): array { return [ - 'id' => $record->getRecordId(), - 'meetingId' => $record->getMeetingId(), - 'name' => $record->getName(), - 'published' => $record->isPublished(), - 'state' => $record->getState(), - 'startTime' => $record->getStartTime(), + 'id' => $record->getRecordId(), + 'meetingId' => $record->getMeetingId(), + 'name' => $record->getName(), + 'published' => $record->isPublished(), + 'state' => $record->getState(), + 'startTime' => $record->getStartTime(), 'participants' => $record->getParticipantCount(), - 'type' => $record->getPlaybackType(), - 'length' => $record->getPlaybackLength(), - 'url' => $record->getPlaybackUrl(), - 'metas' => $record->getMetas(), + 'type' => $record->getPlaybackType(), + 'length' => $record->getPlaybackLength(), + 'url' => $record->getPlaybackUrl(), + 'metas' => $record->getMetas(), ]; } diff --git a/lib/Controller/JoinController.php b/lib/Controller/JoinController.php index 3816ab7..727673e 100644 --- a/lib/Controller/JoinController.php +++ b/lib/Controller/JoinController.php @@ -107,11 +107,11 @@ class JoinController extends Controller { return new RedirectResponse($this->getLoginUrl()); } elseif (empty($displayname) || strlen($displayname) < 3 || ($room->access === Room::ACCESS_PASSWORD && $password !== $room->password)) { $response = new TemplateResponse($this->appName, 'join', [ - 'room' => $room->name, + 'room' => $room->name, 'wrongdisplayname' => !empty($displayname) && strlen($displayname) < 3, 'passwordRequired' => $room->access === Room::ACCESS_PASSWORD, - 'wrongPassword' => $password !== $room->password && $password !== '', - 'loginUrl' => $this->getLoginUrl(), + 'wrongPassword' => $password !== $room->password && $password !== '', + 'loginUrl' => $this->getLoginUrl(), ], 'guest'); return $response; @@ -133,7 +133,7 @@ class JoinController extends Controller { return new TemplateResponse($this->appName, 'forward', [ 'room' => $room->name, - 'url' => $joinUrl, + 'url' => $joinUrl, ], 'guest'); } diff --git a/lib/Db/Restriction.php b/lib/Db/Restriction.php index f253d38..33db7ce 100644 --- a/lib/Db/Restriction.php +++ b/lib/Db/Restriction.php @@ -34,12 +34,12 @@ class Restriction extends Entity implements JsonSerializable { public function jsonSerialize(): array { return [ - 'id' => $this->id, - 'groupId' => $this->groupId, - 'maxRooms' => (int) $this->maxRooms, - 'roomTypes' => \json_decode($this->roomTypes), + 'id' => $this->id, + 'groupId' => $this->groupId, + 'maxRooms' => (int) $this->maxRooms, + 'roomTypes' => \json_decode($this->roomTypes), 'maxParticipants' => (int) $this->maxParticipants, - 'allowRecording' => boolval($this->allowRecording), + 'allowRecording' => boolval($this->allowRecording), ]; } } diff --git a/lib/Db/Room.php b/lib/Db/Room.php index 47fc27d..a057f3d 100644 --- a/lib/Db/Room.php +++ b/lib/Db/Room.php @@ -81,22 +81,22 @@ class Room extends Entity implements JsonSerializable { public function jsonSerialize(): array { return [ - 'id' => $this->id, - 'uid' => $this->uid, - 'userId' => $this->userId, - 'name' => $this->name, - 'welcome' => $this->welcome, - 'maxParticipants' => (int) $this->maxParticipants, - 'record' => boolval($this->record), - 'access' => $this->access, - 'password' => $this->password, + 'id' => $this->id, + 'uid' => $this->uid, + 'userId' => $this->userId, + 'name' => $this->name, + 'welcome' => $this->welcome, + 'maxParticipants' => (int) $this->maxParticipants, + 'record' => boolval($this->record), + 'access' => $this->access, + 'password' => $this->password, 'everyoneIsModerator' => boolval($this->everyoneIsModerator), - 'requireModerator' => boolval($this->requireModerator), - 'shared' => boolval($this->shared), - 'moderatorToken' => $this->moderatorToken, - 'listenOnly' => boolval($this->listenOnly), - 'mediaCheck' => boolval($this->mediaCheck), - 'cleanLayout' => boolval($this->cleanLayout), + 'requireModerator' => boolval($this->requireModerator), + 'shared' => boolval($this->shared), + 'moderatorToken' => $this->moderatorToken, + 'listenOnly' => boolval($this->listenOnly), + 'mediaCheck' => boolval($this->mediaCheck), + 'cleanLayout' => boolval($this->cleanLayout), ]; } } diff --git a/lib/Db/RoomShare.php b/lib/Db/RoomShare.php index a9b053c..2218d23 100644 --- a/lib/Db/RoomShare.php +++ b/lib/Db/RoomShare.php @@ -43,12 +43,12 @@ class RoomShare extends Entity implements JsonSerializable { public function jsonSerialize(): array { return [ - 'id' => $this->id, - 'roomId' => $this->roomId, - 'shareType' => $this->shareType, - 'shareWith' => $this->shareWith, + 'id' => $this->id, + 'roomId' => $this->roomId, + 'shareType' => $this->shareType, + 'shareWith' => $this->shareWith, 'shareWithDisplayName' => $this->shareWithDisplayName, - 'permission' => $this->permission, + 'permission' => $this->permission, ]; } diff --git a/lib/Migration/Version000000Date20200416124731.php b/lib/Migration/Version000000Date20200416124731.php index cb76461..3f536bb 100644 --- a/lib/Migration/Version000000Date20200416124731.php +++ b/lib/Migration/Version000000Date20200416124731.php @@ -25,27 +25,27 @@ class Version000000Date20200416124731 extends SimpleMigrationStep { $table = $schema->createTable('bbb_rooms'); $table->addColumn('id', 'integer', [ 'autoincrement' => true, - 'notnull' => true, + 'notnull' => true, ]); $table->addColumn('uid', 'string', [ 'notnull' => true, - 'length' => 64 + 'length' => 64 ]); $table->addColumn('user_id', 'string', [ 'notnull' => true, - 'length' => 200, + 'length' => 200, ]); $table->addColumn('name', 'string', [ 'notnull' => true, - 'length' => 200 + 'length' => 200 ]); $table->addColumn('attendee_password', 'string', [ 'notnull' => true, - 'length' => 32 + 'length' => 32 ]); $table->addColumn('moderator_password', 'string', [ 'notnull' => true, - 'length' => 32 + 'length' => 32 ]); $table->addColumn('welcome', 'string', [ 'notnull' => false, diff --git a/lib/Migration/Version000000Date20200604130935.php b/lib/Migration/Version000000Date20200604130935.php index 6e46571..03dc78c 100644 --- a/lib/Migration/Version000000Date20200604130935.php +++ b/lib/Migration/Version000000Date20200604130935.php @@ -36,7 +36,7 @@ class Version000000Date20200604130935 extends SimpleMigrationStep { if (!$table->hasColumn('password')) { $table->addColumn('password', 'string', [ - 'length' => 64, + 'length' => 64, 'notnull' => false, ]); } diff --git a/lib/Migration/Version000000Date20200613111242.php b/lib/Migration/Version000000Date20200613111242.php index 1559abd..f562345 100644 --- a/lib/Migration/Version000000Date20200613111242.php +++ b/lib/Migration/Version000000Date20200613111242.php @@ -25,14 +25,14 @@ class Version000000Date20200613111242 extends SimpleMigrationStep { $table = $schema->createTable('bbb_room_shares'); $table->addColumn('id', 'integer', [ 'autoincrement' => true, - 'notnull' => true, + 'notnull' => true, ]); $table->addColumn('room_id', 'integer', [ 'notnull' => true, ]); $table->addColumn('share_with', 'string', [ 'notnull' => true, - 'length' => 200, + 'length' => 200, ]); $table->addColumn('share_type', 'integer', [ 'notnull' => true, diff --git a/lib/Migration/Version000000Date20200826100844.php b/lib/Migration/Version000000Date20200826100844.php index 129a18c..4840d44 100644 --- a/lib/Migration/Version000000Date20200826100844.php +++ b/lib/Migration/Version000000Date20200826100844.php @@ -28,11 +28,11 @@ class Version000000Date20200826100844 extends SimpleMigrationStep { $table = $schema->createTable('bbb_restrictions'); $table->addColumn('id', 'integer', [ 'autoincrement' => true, - 'notnull' => true, + 'notnull' => true, ]); $table->addColumn('group_id', 'string', [ 'notnull' => true, - 'length' => 200, + 'length' => 200, ]); $table->addColumn('max_rooms', 'integer', [ 'notnull' => false, diff --git a/lib/Migration/Version000000Date20210122164501.php b/lib/Migration/Version000000Date20210122164501.php index 75a975e..18fc098 100644 --- a/lib/Migration/Version000000Date20210122164501.php +++ b/lib/Migration/Version000000Date20210122164501.php @@ -29,7 +29,7 @@ class Version000000Date20210122164501 extends SimpleMigrationStep { if (!$table->hasColumn('moderator_token')) { $table->addColumn('moderator_token', 'string', [ 'notnull' => false, - 'length' => 64 + 'length' => 64 ]); } diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 95e98ff..4be6ff2 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -25,7 +25,7 @@ class Admin implements ISettings { */ public function getForm() { $parameters = [ - 'api.url' => $this->config->getAppValue('bbb', 'api.url'), + 'api.url' => $this->config->getAppValue('bbb', 'api.url'), 'api.secret' => $this->config->getAppValue('bbb', 'api.secret'), 'app.navigation' => $this->config->getAppValue('bbb', 'app.navigation') === 'true' ? 'checked' : '', 'join.theme' => $this->config->getAppValue('bbb', 'join.theme') === 'true' ? 'checked' : '',